joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100223c9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [0x1006b790], 0xfffffec1
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov dword [0x1006b78c], 0x83
mov dword [ebp - 0x30], eax
jmp 0x10022498
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.10022a26
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov dword [0x1006b790], 0xfc2
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x10], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x4c], ecx
mov dword [0x1006b78c], 0x671
add ecx, 0x269f
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x1002248f
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x10025b78]
mov dl, byte [eax + 0x10025b49]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x10022498
lea eax, [ebp - 0x24]
mov dword [0x1006b790], 0xe43
mov dword [0x1006b78c], 0x1b8b
mov dword [ebp - 0x44], eax
call fcn.100227ee
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.10022267
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x100223fa
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x100225c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [0x1006b78c], 0x1f0
mov dword [ebp - 0x10], eax
call fcn.10021fc9
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov eax, dword [eax + esi]
cmp eax, 0x4550
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
je 0x10022602
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x78]
mov ecx, eax
add ecx, 0x20
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx]
mov dword [0x1006b790], 0x1eae
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov ebx, dword [esi + edi + 0x24]
mov dword [0x1006b78c], 0xb82
mov edx, dword [esi + edi + 0x18]
cmp edx, 0
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
je 0x10022743
jmp 0x100226ab
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x14]
add edi, dword [edx + ecx*4]
mov dword [0x1006b78c], 0x12d8
mov dword [ebp - 0x34], edi
jmp 0x10022743
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x30]
mov edi, dword [esi + eax*4]
mov dword [0x1006b78c], 0x2173
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
jmp 0x100226bd
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
add ecx, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
jmp 0x10022685
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1002270e
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x100226bd
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1002265d
jmp 0x1002271b
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x2c]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x34], eax
jb 0x10022685
mov eax, dword [ebp - 0x34]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10022b36
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x1006b798], 0
mov byte [0x1006b79c], 0
mov dword [0x1006b78c], 0x719
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x1006b794], 0
mov dword [ebp - 0x1c], eax
jmp 0x10022b9c
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x1006b794], 0
xor eax, eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
jmp 0x10022bda
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1006b790]
add eax, 0xfffff13a
mov dword [0x1006b78c], eax
mov esi, dword [0x1006b794]
add esi, 1
mov dword [0x1006b794], esi
cmp esi, 0x100
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], esi
jl 0x10022b9c
jmp 0x10022b85
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, 0x100
mov dword [0x1006b7a0], 0
mov esi, dword [0x1006b798]
mov edi, dword [ebp - 0x18]
movzx ebx, byte [edi + eax]
add ebx, esi
mov dword [ebp - 0x2c], eax
xor esi, esi
mov dword [ebp - 0x30], edx
mov edx, esi
mov esi, dword [ebp - 0x10]
div esi
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add ebx, edx
mov dword [0x1006b7a0], ebx
mov dword [0x1006b790], 0xde7
mov eax, ebx
cdq
mov ebx, dword [ebp - 0x30]
idiv ebx
mov dword [0x1006b798], edx
mov esi, dword [ebp - 0x2c]
mov bl, byte [edi + esi]
mov byte [0x1006b79c], bl
add ecx, 0x17b0
mov dword [0x1006b78c], ecx
mov bl, byte [edi + edx]
mov byte [edi + esi], bl
mov dword [0x1006b78c], 0x20e9
mov bl, byte [0x1006b79c]
mov ecx, dword [0x1006b798]
mov byte [edi + ecx], bl
mov ecx, dword [0x1006b794]
add ecx, 1
mov dword [0x1006b794], ecx
cmp ecx, 0x100
mov dword [ebp - 0x34], ecx
jge 0x10022b7d
mov eax, dword [0x1006b78c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x10022bda
Function at 0x10022d38
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [0x1006b78c], 0x1c02
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10022da2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x18], eax
je 0x10022e75
jmp 0x10022e6e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x10022d6e
jmp 0x10022e6e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x10022de3
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x25], cl
mov al, byte [ebp - 0x25]
test al, 1
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], edx
jne 0x10022da2
jmp 0x10022de3
mov eax, dword [ebp - 0x20]
mov dword [0x1006b78c], 0x848
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x10022e6e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp word [eax], 0x6f
jne 0x10022e6e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
sete dl
mov byte [ebp - 0x2d], dl
mov al, byte [ebp - 0x2d]
test al, 1
jne 0x10022e38
jmp 0x10022e6e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff6
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2], 0x64
jne 0x10022e6e
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff7
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x38]
cmp word [eax + ecx*2], 0x64
je 0x10022d8e
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x10022e75
mov eax, dword [ebp - 0x18]
add esp, 0x38
pop ebp
ret
Function at 0x10022e7d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.10001064
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x10022f0a
jmp 0x10022ffa
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x40], ecx
mov dword [0x1006b790], 0xffffffce
mov edx, dword [esp + 0x24]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x4c], esi
mov dword [0x1006b78c], 0x108a
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.100223c9
mov dword [0x1006b790], 0x159a
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jmp 0x10022ffa
lea eax, [esp + 0x40]
mov ecx, dword [0x1006b790]
add ecx, 0xffffe60f
mov dword [0x1006b78c], ecx
mov dword [esp + 0x1c], eax
call fcn.10022d38
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x20], ecx
jne 0x10022efd
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.10021ac2
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x80], 0x128200
mov ecx, dword [0x1006b778]
mov dword [esp + 0x54], ecx
mov ecx, dword [0x1006b77c]
mov dword [esp + 0x94], ecx
mov ecx, dword [0x1006b780]
mov dword [esp + 0x90], ecx
mov ecx, dword [0x1006b784]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
lea eax, [0x100221fb]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x5c], ecx
mov edx, dword [0x1006b788]
mov dword [esp + 0x70], edx
mov dword [0x1006b790], 0x5db
mov dword [0x1006b78c], 0x183f
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
cmp word [eax], 0x5a4d
mov dword [esp + 0x28], eax
jne 0x10022fde
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x24], ecx
je 0x10022ea1
mov eax, dword [esp + 0x28]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
jmp 0x10022fb7
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x401030
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x4011d0
push 0
push 0x65
push dword [0x4052a0]
call sub.user32.dll_CreateDialogParamA
mov dword [0x4052a4], eax
push 0x91
push dword [0x4052a0]
call sub.user32.dll_LoadIconA
mov dword [0x4052a8], eax
push eax
push 1
push 0x80
push dword [0x4052a4]
call sub.user32.dll_SendMessageA
push 0xfffffffffffffff0
push dword [0x4052a4]
call sub.user32.dll_GetWindowLongA
and eax, 0xff3fffff
push eax
push 0xfffffffffffffff0
push dword [0x4052a4]
call sub.user32.dll_SetWindowLongA
push esi
push 0
push dword [0x4052a4]
call sub.user32.dll_GetSystemMenu
mov esi, eax
push 0
push 0xf030
push esi
call sub.user32.dll_DeleteMenu
push 0
push 0xf000
push esi
call sub.user32.dll_DeleteMenu
push dword [0x4052a4]
call sub.user32.dll_DrawMenuBar
pop esi
push 0x40d980
push dword [0x4052a4]
call sub.user32.dll_GetWindowRect
push 0x40d990
push dword [0x4052a4]
call sub.user32.dll_GetClientRect
push 1
mov eax, dword [0x40d98c]
sub eax, dword [0x40d984]
sub eax, dword [0x40d99c]
add eax, 0x1e2
push eax
mov eax, dword [0x40d988]
sub eax, dword [0x40d980]
sub eax, dword [0x40d998]
add eax, 0x282
push eax
push dword [0x40d984]
push dword [0x40d980]
push dword [0x4052a4]
call sub.user32.dll_MoveWindow
push 0x40d9a0
push dword [0x4052a4]
call sub.user32.dll_GetClientRect
push 1
push eax
call sub.user32.dll_ShowWindow
push dword [0x4052a4]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x40d9b8
call sub.user32.dll_GetMessageA
or eax, eax
je 0x4011bb
cmp dword [0x40d9bc], 0x100
jne 0x401191
push dword [0x40d9c4]
push dword [0x40d9c0]
push 0x100
push dword [0x4052a4]
call sub.user32.dll_SendMessageA
jmp 0x4011b9
push 0x40d9b8
push dword [0x4052a4]
call sub.user32.dll_IsDialogMessageA
or eax, eax
jne 0x4011b9
push 0x40d9b8
call sub.user32.dll_TranslateMessage
push 0x40d9b8
call sub.user32.dll_DispatchMessageA
jmp 0x401153
mov eax, dword [0x40d9c0]
ret
Function at 0x4031f0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
pushal
mov ebx, dword [0x405380]
push ebx
call sub.gdi32.dll_CreateCompatibleDC
mov esi, eax
push 0x19b
push 0x280
push ebx
call sub.gdi32.dll_CreateCompatibleBitmap
mov edi, eax
push edi
push esi
call sub.gdi32.dll_SelectObject
lea eax, [ebp - 0x18]
push eax
push 0x18
push edi
call sub.gdi32.dll_GetObjectA
mov dword [ebp - 0x50], 0x28
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov word [ebp - 0x44], 1
mov word [ebp - 0x42], 0x20
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov eax, 0x36
mov dword [ebp - 0x1c], eax
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x26], 0x4d42
mov eax, dword [ebp - 0x14]
movzx edx, word [ebp - 0x42]
imul eax, edx
add eax, 0x1f
shr eax, 5
imul eax, eax, 4
imul eax, dword [ebp - 0x10]
mov dword [ebp - 0x54], eax
push 4
push 0x1000
push dword [ebp - 0x54]
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
shl eax, 2
add eax, 0x405380
mov ebx, dword [eax]
push 0xcc0020
push 0
push 0
push ebx
push 0x19b
push 0x280
push 0
push 0
push esi
call sub.gdi32.dll_BitBlt
push 0
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x58]
push dword [ebp - 0x10]
push 0
push edi
push ebx
call sub.gdi32.dll_GetDIBits
push 0x408360
push 0x3ff
call sub.kernel32.dll_GetCurrentDirectoryA
mov edx, dword [0x405340]
add edx, 0x10
mov eax, dword [ebp - 0x5c]
inc eax
push eax
push edx
push str._s___p_02d.bmp
push 0x408760
call sub.user32.dll_wsprintfA
add esp, 0x10
push 0x408760
push 0x408360
call sub.kernel32.dll_lstrcatA
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x408360
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x403392
mov ebx, eax
push 0
push 0x4052bc
push 0xe
lea eax, [ebp - 0x26]
push eax
push ebx
call sub.kernel32.dll_WriteFile
push 0
push 0x4052bc
push 0x28
lea eax, [ebp - 0x50]
push eax
push ebx
call sub.kernel32.dll_WriteFile
push 0
push 0x4052bc
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x5c]
inc eax
cmp eax, dword [0x405344]
jbe 0x4032b7
push edi
call sub.gdi32.dll_DeleteObject
push esi
call sub.gdi32.dll_DeleteObject
push 0x4000
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call sub.kernel32.dll_VirtualFree
popal
leave
ret
Function at 0x4033d0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push esi
push ecx
push ebx
cmp dword [0x40534c], 1
jne 0x4033f8
mov esi, dword [0x4052f4]
mov edi, esi
mov ecx, 0xffffffff
mov eax, 0xfb
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
jmp 0x403402
mov eax, dword [0x405340]
mov esi, dword [eax]
mov edi, dword [eax + 4]
push 0
call sub.user32.dll_OpenClipboard
or eax, eax
je 0x403444
inc edi
push edi
push 2
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x40343f
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
mov ecx, edi
dec ecx
mov edi, eax
rep movsb byte es:[edi], byte [esi]
xor al, al
stosb byte es:[edi], al
call sub.user32.dll_EmptyClipboard
push ebx
call sub.kernel32.dll_GlobalUnlock
push ebx
push 1
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
pop ebx
pop ecx
pop esi
pop edi
ret
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
test eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
push edi
pop ecx
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
test eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x403fa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x403fd2
jl 0x403fc5
test ecx, ecx
jne 0x403fd2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404092
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405740
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40403e
jg 0x403ffd
test esi, esi
je 0x40403e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x404015
mov eax, dword [esp + 0x10]
jl 0x40400f
cmp eax, esi
jae 0x404015
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00411c00
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40405f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40407b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x403fe4
jl 0x40407b
test ecx, ecx
jne 0x403fe4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4040d6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x4040d6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00411c00
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x404147
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4040fc
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x404132
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00416430
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x404147
cmp edi, eax
ja 0x404110
test edi, edi
je 0x404147
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00416430
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4059c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491d80
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b2080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004101a2
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.0040f38e
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00405960
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret