joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.0043cdb0
push 0x105
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.0043cdb0
push str.iNodeLicense.ini
push esi
lea edx, [ebp - 0x214]
push 0x4685c4
push edx
call fcn.0043ce2a
add esp, 0x28
xor eax, eax
pop esi
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x42c261
lea eax, [ebp - 0x10c]
push eax
call fcn.00432840
add esp, 4
test eax, eax
jne 0x42c295
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10c]
push ecx
push 0xffffffffffffffff
push str.IsExtendedLic
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret

Function at 0x42c770
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.0043cdb0
push 0x105
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.0043cdb0
push str.iNodeLicense.ini
push esi
lea edx, [ebp - 0x214]
push 0x4685c4
push edx
call fcn.0043ce2a
add esp, 0x28
xor eax, eax
pop esi
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x42c7d1
lea eax, [ebp - 0x10c]
push eax
call fcn.00432840
add esp, 4
test eax, eax
jne 0x42c805
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10c]
push ecx
push 0
push str.Is3ComLic
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret

Function at 0x42ca20
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x4a0ee8], 0
jne 0x42caa7
push 0x105
push 0x4a0ee8
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x42caa7
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x103
ja 0x42caba
mov cl, byte [ebp - 0x10c]
push esi
push edi
mov edi, 0x4a0ee8
mov byte [0x4a0ee8], cl
mov byte [0x4a0ee9], 0
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x42ca90
mov ecx, 7
mov esi, str.:Program_FilesCommon_Files
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
Function at 0x42cae0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42caf0
push ebx
mov ebx, dword [ebp + 0x10]
sub eax, edx
xor ecx, ecx
push edi
mov edi, eax
test ebx, ebx
je 0x42cb26
push esi
mov esi, dword [ebp + 0xc]
lea ebx, [ebx]
xor edx, edx
mov eax, ecx
div edi
mov eax, dword [ebp + 8]
inc ecx
mov dl, byte [edx + eax]
xor byte [ecx + esi - 1], dl
cmp ecx, ebx
jb 0x42cb10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x42cc10
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x42cc4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edx, 1
mov word [eax + 4], dx
jmp 0x42cc67
push esi
call fcn.0043e36c
mov edi, eax
add esp, 4
test edi, edi
jne 0x42cc82
mov ecx, 2
mov eax, dword [ebp + 0xc]
mov word [eax + 4], cx
mov esi, dword [ebp - 0x10]
mov dword [eax], ebx
test edi, edi
je 0x42cc79
push edi
call fcn.0043e361
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x42cca2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 3
jmp 0x42cc60
xor eax, eax
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x46875c
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x42ccd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 4
jmp 0x42cc60
mov eax, dword [ebp - 4]
movzx edx, word [eax + 0xa]
mov ecx, dword [ebp + 0xc]
mov word [ecx], dx
movzx edx, word [eax + 8]
mov word [ecx + 2], dx
movzx edx, word [eax + 0xe]
mov word [ecx + 4], dx
mov ax, word [eax + 0xc]
mov word [ecx + 6], ax
mov esi, 1
jmp 0x42cc6c
Function at 0x432840
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43287d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x144], 0x10
push edi
je 0x4328a7
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
lea edx, [ebp - 0x144]
push edx
push esi
call edi
test eax, eax
je 0x4328c3
test byte [ebp - 0x144], 0x10
jne 0x432890
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043bde4
mov esp, ebp
pop ebp
ret

Function at 0x4328e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43291d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x144], 0x10
push edi
jne 0x432947
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
lea edx, [ebp - 0x144]
push edx
push esi
call edi
test eax, eax
je 0x432963
test byte [ebp - 0x144], 0x10
je 0x432930
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043bde4
mov esp, ebp
pop ebp
ret

Function at 0x432b70
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00432840
add esp, 4
test eax, eax
jne 0x432b8c
mov eax, 1
pop esi
pop ebp
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
ret
Function at 0x432bb0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.0043cdb0
push edi
push esi
lea ecx, [ebp - 0x20c]
push 0x4685c4
push ecx
call fcn.0043ce2a
add esp, 0x1c
lea edx, [ebp - 0x34c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x432c99
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.0043cdb0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea esp, [esp]
test byte [ebp - 0x34c], 0x10
jne 0x432c80
lea edx, [ebp - 0x320]
push edx
push esi
lea eax, [ebp - 0x108]
push 0x4685c4
push eax
call fcn.0043ce2a
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x108]
push ecx
call ebx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x432c40
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bde4
mov esp, ebp
pop ebp
ret

Function at 0x432d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], 0
call fcn.00432d10
mov ecx, dword [ebp + 8]
add esp, 8
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432d70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432db3
cmp dword [ebp - 4], esi
jne 0x432db3
push esi
push edi
call fcn.00432d10
add esp, 8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x432e30
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004328e0
add esp, 4
test eax, eax
jne 0x432e4c
mov eax, 1
pop esi
pop ebp
ret
push 0x468700
push esi
call fcn.00432bb0
push esi
call fcn.00432e70
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
pop ebp
ret
Function at 0x432e70
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x213]
push 0
push eax
mov byte [ebp - 0x214], 0
call fcn.0043cdb0
push 0x468700
push edi
lea ecx, [ebp - 0x214]
push 0x4685c4
push ecx
call fcn.0043ce2a
add esp, 0x1c
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x432fbe
push 0x104
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov byte [ebp - 0x10c], 0
call fcn.0043cdb0
add esp, 0xc
jmp 0x432f00
test byte [ebp - 0x354], 0x10
je 0x432fa1
mov ecx, 0x468018
lea eax, [ebp - 0x328]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x432f38
test dl, dl
je 0x432f34
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x432f38
add eax, 2
add ecx, 2
test dl, dl
jne 0x432f18
xor eax, eax
jmp 0x432f3d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432fa1
mov ecx, 0x46ac80
lea eax, [ebp - 0x328]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x432f70
test dl, dl
je 0x432f6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x432f70
add eax, 2
add ecx, 2
test dl, dl
jne 0x432f50
xor eax, eax
jmp 0x432f75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x432fa1
lea edx, [ebp - 0x328]
push edx
push edi
lea eax, [ebp - 0x10c]
push 0x4685c4
push eax
call fcn.0043ce2a
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00432e30
add esp, 0x14
lea edx, [ebp - 0x354]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x432f00
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043bde4
mov esp, ebp
pop ebp
ret

Function at 0x433b30
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004328e0
add esp, 4
test eax, eax
je 0x433b59
push 0x468700
push esi
call fcn.00432bb0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
pop ebp
ret
Function at 0x434470
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463fcb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4775a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00460c08
push 4
mov dword [ebp - 4], 0
call fcn.0043c867
mov edi, eax
add esp, 4
test edi, edi
je 0x4344f0
call fcn.0046071a
mov dword [edi], eax
call fcn.0046045b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004602c4
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4344e6
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.004602ec
jmp 0x4344f2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4375d0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46458b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 0x105
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x23c], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x103
ja 0x4376d1
xor ebx, ebx
lea eax, [ebp - 0x21c]
mov byte [ebp - 0x21b], bl
mov dword [ebp - 0x224], 0xf
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x238], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x437650
sub eax, edx
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.00407c70
push 5
push str.:_tmp
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], ebx
call fcn.00412db0
cmp dword [ebp - 0x224], 0x10
mov eax, dword [ebp - 0x238]
jae 0x437696
lea eax, [ebp - 0x238]
push eax
call fcn.004328e0
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 4
test eax, eax
jne 0x4376ef
cmp dword [ebp - 0x224], 0x10
mov eax, dword [ebp - 0x238]
jae 0x4376be
lea eax, [ebp - 0x238]
push ebx
push eax
call esi
test eax, eax
jne 0x4376ef
lea ecx, [ebp - 0x238]
call fcn.00407790
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp + 0x14], ebx
je 0x4376fc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 0x224], 0x10
mov ecx, dword [ebp - 0x238]
jae 0x437711
lea ecx, [ebp - 0x238]
push eax
push edi
push ecx
lea eax, [ebp - 0x114]
push str._s_s_u
push eax
call fcn.0043ce2a
lea eax, [ebp - 0x114]
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x437731
sub eax, edx
cmp dword [ebp + 0xc], eax
ja 0x43775c
cmp dword [ebp - 0x224], 0x10
jb 0x4376d1
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.0043c161
add esp, 4
jmp 0x4376d1
lea edx, [ebp - 0x114]
push edx
call fcn.004328e0
add esp, 4
test eax, eax
lea eax, [ebp - 0x114]
jne 0x4377b0
push ebx
push eax
call esi
test eax, eax
je 0x4376c6
mov edx, dword [ebp - 0x23c]
lea eax, [ebp - 0x114]
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x437791
lea ecx, [ebp - 0x238]
call fcn.00407790
mov eax, 1
jmp 0x4376d3
mov esi, dword [ebp - 0x23c]
mov edx, esi
lea ecx, [ebp - 0x114]
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4377c0
cmp dword [ebp + 0x18], ebx
je 0x4377dd
push 0x468700
push esi
call fcn.00432bb0
add esp, 8
lea ecx, [ebp - 0x238]
call fcn.00407790
mov eax, 1
jmp 0x4376d3
Function at 0x43a4c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46478b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea ecx, [ebp - 0x134]
lea esi, [ebp - 0x114]
push ecx
mov edx, esi
push edx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], eax
mov dword [ebp - 0x140], 0
mov dword [ebp - 0x134], 0x104
call edi
test eax, eax
jne 0x43a595
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x138]
mov dword [ecx], eax
cmp eax, 0x6f
jne 0x43a58e
mov eax, dword [ebp - 0x134]
inc eax
push eax
mov dword [ebp - 0x134], eax
call fcn.0043e36c
mov esi, eax
add esp, 4
test esi, esi
je 0x43a58e
lea edx, [ebp - 0x134]
push edx
push esi
mov dword [ebp - 0x140], 1
call edi
test eax, eax
jne 0x43a595
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x138]
push esi
mov dword [ecx], eax
call fcn.0043e361
add esp, 4
xor eax, eax
jmp 0x43a68b
mov edx, dword [ebp + 0xc]
push edx
push 0x20
push ebx
call fcn.0043cdb0
mov eax, esi
add esp, 0xc
mov byte [ebx], 0x33
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43a5b0
sub eax, edx
mov edi, eax
cmp edi, dword [ebp + 0xc]
jb 0x43a652
xor ebx, ebx
push 0xc
push str.getHostId3:
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00407c70
mov eax, esi
mov dword [ebp - 4], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43a5f6
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x130]
call fcn.00412db0
mov eax, dword [ebp - 0x130]
mov ebx, 0x10
cmp dword [ebp - 0x11c], ebx
jae 0x43a625
lea eax, [ebp - 0x130]
push 0
push eax
push str.UtlHost
call fcn.004269e0
add esp, 0xc
cmp dword [ebp - 0x11c], ebx
jb 0x43a64c
mov eax, dword [ebp - 0x130]
push eax
call fcn.0043c161
add esp, 4
mov ebx, dword [ebp - 0x13c]
mov eax, dword [ebp + 0xc]
dec eax
cmp edi, eax
jae 0x43a65c
mov eax, edi
push eax
push esi
inc ebx
push ebx
call fcn.0043c170
add esp, 0xc
cmp dword [ebp - 0x140], 0
je 0x43a67a
push esi
call fcn.0043e361
add esp, 4
mov ecx, dword [ebp - 0x138]
mov dword [ecx], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bde4
mov esp, ebp
pop ebp
ret
Function at 0x43bde4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4775a8]
jne 0x43bdee
repz ret
jmp fcn.0043fd88

Function at 0x45b577
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4775a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00441936
and dword [ebp - 0x14], 0
cmp dword [0x4a1ffc], 0
mov dword [ebp - 0x18], eax
jne 0x45b62a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45b6d2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x45b6d2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a1ffc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a2000], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a2004], eax
call edi
push eax
call esi
mov dword [0x4a200c], eax
test eax, eax
je 0x45b62a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a2008], eax
mov eax, dword [0x4a2008]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45b683
cmp dword [0x4a200c], ecx
je 0x45b683
push eax
call esi
push dword [0x4a200c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45b683
test ebx, ebx
je 0x45b683
call edi
test eax, eax
je 0x45b67a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45b67a
test byte [ebp - 8], 1
jne 0x45b683
or dword [ebp + 0x10], 0x200000
jmp 0x45b6b6
mov eax, dword [0x4a2000]
cmp eax, dword [ebp - 0x18]
je 0x45b6b6
push eax
call esi
test eax, eax
je 0x45b6b6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45b6b6
mov eax, dword [0x4a2004]
cmp eax, dword [ebp - 0x18]
je 0x45b6b6
push eax
call esi
test eax, eax
je 0x45b6b6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a1ffc]
call esi
test eax, eax
je 0x45b6d2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45b6d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043bde4
leave
ret
Function at 0x40143f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x828
push ebx
push esi
push edi
sub eax, eax
mov word [ebp - reloc.shlwapi.dll_PathFindFileNameA], ax
push 0x400
xor edi, edi
lea eax, [ebp - 0x828]
push eax
push edi
pop ebx
push edi
pop esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x828]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4014e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
pop ebx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.00401720
push eax
pop esi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014c8
cmp dword [ebp - 0x20], ebx
je 0x4014d9
push esi
pop ecx
call fcn.00401790
xor esi, esi
sub ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
jmp section..htext

Function at 0x401040
Capabilities:
Create process on windows

Disassembly:
push 5
push str.calc.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x401062
push str.Worked_successfully
call fcn.00401010
add esp, 4
xor eax, eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Something_worong_:__d
call fcn.00401010
add esp, 8
xor eax, eax
ret

Function at 0x40187e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018bd
cmp dword [ecx + 0x74], 0xe
jbe 0x4018bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret