joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424780
Capabilities:
Get common file path

Disassembly:
mov eax, 0x563c
call fcn.00435100
mov eax, dword [0x457a00]
xor eax, esp
mov dword [esp + 0x5638], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.00433570
push 0x27ff
lea ecx, [esp + 0x651]
push ebx
push ecx
mov byte [esp + 0x658], bl
call fcn.00433570
push 0x27ff
lea edx, [esp + 0x2e5d]
push ebx
push edx
mov byte [esp + 0x2e64], bl
call fcn.00433570
push 0xff
lea eax, [esp + 0x159]
push ebx
push eax
mov byte [esp + 0x160], bl
call fcn.00433570
push 0xff
lea ecx, [esp + 0x475]
push ebx
push ecx
mov byte [esp + 0x47c], bl
call fcn.00433570
push 0xff
lea edx, [esp + 0x581]
push ebx
push edx
mov byte [esp + 0x588], bl
call fcn.00433570
add esp, 0x48
push 0x103
lea eax, [esp + 0x235]
push ebx
push eax
mov byte [esp + 0x23c], bl
call fcn.00433570
push 0x103
lea ecx, [esp + 0x349]
push ebx
push ecx
mov byte [esp + 0x350], bl
call fcn.00433570
push ebx
call fcn.0042fb9e
mov dword [esp + 0x40], edx
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x40], eax
call fcn.0042fe9f
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
add edx, 1
push edx
add eax, 0x76c
push eax
push str._04d_02d_02d
lea edx, [esp + 0x570]
call fcn.004012a0
lea ecx, [esp + 0x570]
push ecx
push str.iBMLib_log__s.txt
lea edx, [esp + 0x478]
call fcn.004012a0
add esp, 0x38
lea edx, [esp + 0x230]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [esp + 0x33c]
push eax
lea ecx, [esp + 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
xor eax, eax
jmp 0x424900
mov cl, byte [esp + eax + 0x338]
mov byte [esp + eax + 0x28], cl
add eax, 1
cmp cl, bl
jne 0x424900
lea eax, [esp + 0x440]
mov edx, eax
jmp 0x424920
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x424920
lea edi, [esp + 0x28]
sub eax, edx
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
cmp cl, bl
jne 0x424932
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x28]
and ecx, 3
push 0x44c598
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0042ff87
mov esi, eax
add esp, 8
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [esp + 0x1e]
movzx edx, word [esp + 0x1c]
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1c]
push edx
movzx edx, word [esp + 0x1e]
push eax
movzx eax, word [esp + 0x1e]
push ecx
movzx ecx, word [esp + 0x20]
push edx
push eax
push ecx
push str._04d__02d__02d__02d:_02d:_02d__04d
lea edx, [esp + 0x150]
call fcn.004012a0
mov edx, dword [esp + 0x566c]
push edx
lea eax, [esp + 0x154]
push eax
push str._s_:_s
lea edx, [esp + 0x66c]
call fcn.004012c0
lea ecx, [esp + 0x567c]
push ecx
lea edx, [esp + 0x670]
push edx
push 0x2800
lea eax, [esp + 0x2e78]
push 0x2800
push eax
call fcn.0042fb71
add esp, 0x40
lea ecx, [esp + 0x2e40]
push esi
push ecx
call fcn.0042ff9a
push esi
call fcn.0043014e
mov ecx, dword [esp + 0x5650]
add esp, 0xc
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042fb8f
add esp, 0x563c
ret
Function at 0x424fd0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
test ecx, ecx
push esi
mov esi, eax
mov eax, 0xffff
jbe 0x425004
lea esp, [esp]
movzx edx, byte [esi]
xor edx, eax
movzx ax, ah
and edx, 0xff
xor ax, word [edx*2 + 0x451538]
sub ecx, 1
add esi, 1
test ecx, ecx
movzx eax, ax
ja 0x424fe0
not eax
pop esi
ret

Function at 0x42cae9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x42cb2c
call fcn.00425845
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x42cb2c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42cb47
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0042c6a0
test ebx, ebx
mov esi, eax
je 0x42cb45
test edi, edi
je 0x42cb45
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x42fb8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x457a00]
jne 0x42fb99
repz ret
jmp fcn.00436670
Function at 0x438d93
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x458030]
je 0x438dae
inc edi
cmp edi, 0x17
jb 0x438d9f
cmp edi, 0x17
jae 0x438f2e
push ebp
push 3
call fcn.00441efd
cmp eax, 1
pop ecx
je 0x438efa
push 3
call fcn.00441efd
test eax, eax
pop ecx
jne 0x438de2
cmp dword [0x4579f0], 1
je 0x438efa
cmp ebx, 0xfc
je 0x438f2d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45b278
push ebp
call fcn.004304d1
add esp, 0xc
test eax, eax
je 0x438e18
push esi
push esi
push esi
push esi
push esi
call fcn.00430752
add esp, 0x14
push 0x104
mov esi, 0x45b291
push esi
push 0
mov byte [0x45b395], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438e5c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004304d1
add esp, 0xc
test eax, eax
je 0x438e5c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00430752
add esp, 0x14
push esi
call fcn.00432cd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438ea1
push esi
call fcn.00432cd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45b58c
push 0x44b224
sub ecx, eax
push ecx
push eax
call fcn.00430916
add esp, 0x14
test eax, eax
je 0x438ea1
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00430752
add esp, 0x14
jmp 0x438ea3
xor esi, esi
push 0x44b220
push ebx
push ebp
call fcn.00430460
add esp, 0xc
test eax, eax
je 0x438ec3
push esi
push esi
push esi
push esi
push esi
call fcn.00430752
add esp, 0x14
push dword [edi*8 + 0x458034]
push ebx
push ebp
call fcn.00430460
add esp, 0xc
test eax, eax
je 0x438ee5
push esi
push esi
push esi
push esi
push esi
call fcn.00430752
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00441d40
add esp, 0xc
jmp 0x438f2d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x438f2d
cmp ebp, 0xffffffff
je 0x438f2d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x458034]
push dword [esi]
call fcn.00432cd0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x43cc4a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x43cc77
call fcn.004334da
mov dword [eax], esi
call fcn.004334c7
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0043084e
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x43cc53
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43cca6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004334ed
pop ecx
call fcn.004334c7
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x43cccd
test al, 1
je 0x43cccd
test byte [esp + 0xc], 2
je 0x43cccd
call fcn.004334da
mov dword [eax], 5
call fcn.004334c7
mov dword [eax], 0xd
jmp 0x43cc9d
xor eax, eax
pop esi
ret
Function at 0x441d40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00439072
xor ebx, ebx
cmp dword [0x45b730], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x441e16
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x441ef6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44b444
push edi
call esi
cmp eax, ebx
je 0x441ef6
push eax
call fcn.00439004
mov dword [esp], 0x44b434
push edi
mov dword [0x45b730], eax
call esi
push eax
call fcn.00439004
mov dword [esp], 0x44b420
push edi
mov dword [0x45b734], eax
call esi
push eax
call fcn.00439004
mov dword [0x45b738], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00431145
test eax, eax
pop ecx
pop ecx
je 0x441de4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430752
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x441e16
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00439004
cmp eax, ebx
pop ecx
mov dword [0x45b740], eax
je 0x441e16
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00439004
pop ecx
mov dword [0x45b73c], eax
mov eax, dword [0x45b73c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x441e9b
cmp dword [0x45b740], ecx
je 0x441e9b
push eax
call fcn.0043907b
push dword [0x45b740]
mov esi, eax
call fcn.0043907b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x441e9b
cmp edi, ebx
je 0x441e9b
call esi
cmp eax, ebx
je 0x441e68
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x441e68
test byte [ebp - 0x18], 1
jne 0x441e9b
lea eax, [ebp - 0x10]
push eax
call fcn.004311b8
test eax, eax
pop ecx
je 0x441e83
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430752
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x441e92
or dword [ebp + 0x10], 0x200000
jmp 0x441ed6
or dword [ebp + 0x10], 0x40000
jmp 0x441ed6
mov eax, dword [0x45b734]
cmp eax, dword [ebp - 8]
je 0x441ed6
push eax
call fcn.0043907b
cmp eax, ebx
pop ecx
je 0x441ed6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x441ed6
mov eax, dword [0x45b738]
cmp eax, dword [ebp - 8]
je 0x441ed6
push eax
call fcn.0043907b
cmp eax, ebx
pop ecx
je 0x441ed6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45b730]
call fcn.0043907b
cmp eax, ebx
pop ecx
je 0x441ef6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x441ef8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x447305
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x457a00]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044729a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00433570
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x447354
cmp dword [ebp - 0x1c], 5
jb 0x44736c
jmp 0x447368
cmp dword [ebp - 0x10], 1
jne 0x44736c
cmp dword [ebp - 0x1c], 4
ja 0x447368
jne 0x44736c
cmp dword [ebp - 0x18], 0
jbe 0x44736c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44c560
call fcn.0044718b
test eax, eax
jge 0x44738d
mov byte [0x45e654], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042fb8f
add ebp, 0x78
leave
ret
Function at 0x42e476
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
push edi
push dword [esp + 0xc]
lea edi, [esi + 0x188]
push dword [edi]
call fcn.0042e59c
mov dword [edi], eax
lea ecx, [esi + 0x18c]
and eax, 0xff
lea edi, [esi + 0x190]
add eax, dword [ecx]
imul eax, eax, 0x8088405
inc eax
mov dword [ecx], eax
mov ecx, esi
shr eax, 0x18
mov byte [esp + 0xc], al
push dword [esp + 0xc]
push dword [edi]
call fcn.0042e59c
mov dword [edi], eax
pop edi
pop esi
ret 4

Function at 0x434116
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x434124
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x10], 8
push esi
push edi
not eax
mov ecx, 0xff
jb 0x434205
mov edi, dword [ebp + 0x10]
push ebx
shr edi, 3
movzx ebx, byte [edx]
mov esi, eax
sub dword [ebp + 0x10], 8
and esi, ecx
xor esi, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [esi*4 + 0x457cf0]
xor eax, ebx
inc edx
mov esi, eax
movzx ebx, byte [edx]
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x457cf0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x457cf0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x457cf0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x457cf0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
movzx ebx, byte [edx + 1]
mov esi, dword [esi*4 + 0x457cf0]
shr eax, 8
xor esi, eax
inc edx
mov eax, esi
and eax, ecx
xor eax, ebx
movzx ebx, byte [edx + 1]
mov eax, dword [eax*4 + 0x457cf0]
shr esi, 8
xor eax, esi
inc edx
mov esi, eax
and esi, ecx
xor esi, ebx
shr eax, 8
mov esi, dword [esi*4 + 0x457cf0]
xor eax, esi
inc edx
dec edi
jne 0x434141
pop ebx
cmp dword [ebp + 0x10], 0
je 0x434226
movzx edi, byte [edx]
mov esi, eax
and esi, ecx
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x457cf0]
xor eax, esi
inc edx
dec dword [ebp + 0x10]
jne 0x43420b
pop edi
pop esi
not eax
pop ebp
ret
Function at 0x4346b1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x24]
mov ecx, dword [esi + 0x64]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x6c]
sub eax, ecx
sub eax, edx
mov dword [ebp + 8], eax
jne 0x4346db
test ecx, ecx
jne 0x4346e5
test edx, edx
jne 0x4346e5
mov eax, edi
jmp 0x434751
cmp eax, 0xffffffff
jne 0x4346e5
push 0xfffffffffffffffe
pop eax
jmp 0x434751
mov edx, dword [esi + 0x24]
lea edx, [edi + edx - 0x106]
cmp ecx, edx
jb 0x434751
mov eax, dword [esi + 0x30]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00443a40
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x3c]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x434716
mov eax, dword [esi + 0x38]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x434735
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x4347ac
push eax
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
add eax, dword [esi + 0x30]
push eax
push ecx
call fcn.004347b1
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
add esp, 0xc
cmp ebx, 3
jb 0x434798
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x4347ac
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4346bd
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x476ac4
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x4966d4], 0
jne 0x476b83
mov dword [ebp - 0x10], 0x80000000
push 0x400
call fcn.0047cf6d
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x4966d4], eax
mov dword [ebp - 0xc], 0
jmp 0x476b08
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x100
jge 0x476b83
push 8
mov edx, dword [ebp - 0xc]
push edx
call fcn.00476a6e
add esp, 8
shl eax, 0x18
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
jmp 0x476b37
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 8
jge 0x476b64
mov ecx, dword [ebp - 0x18]
and ecx, 0x80000000
test ecx, ecx
je 0x476b5a
mov edx, dword [ebp - 0x18]
shl edx, 1
xor edx, 0x4c11db7
mov dword [ebp - 0x18], edx
jmp 0x476b62
mov eax, dword [ebp - 0x18]
shl eax, 1
mov dword [ebp - 0x18], eax
jmp 0x476b2e
push 0x20
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00476a6e
add esp, 8
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4966d4]
mov dword [ecx + edx*4], eax
jmp 0x476aff
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
jmp 0x476b9d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x476bc9
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
xor ecx, dword [ebp + 0x10]
and ecx, 0xff
mov edx, dword [ebp + 0x10]
shr edx, 8
mov eax, dword [0x4966d4]
mov ecx, dword [eax + ecx*4]
xor ecx, edx
mov dword [ebp + 0x10], ecx
jmp 0x476b94
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x4777a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x477813
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x47785c
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00482eb0
add esp, 8
test eax, eax
jne 0x47785a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x47785e
jmp 0x47780a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x47c9ae
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004795a9
add esp, 4
and eax, 0xff
test eax, eax
je 0x47ca37
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 0x2cc
push 0
lea eax, [ebp - 0x2cc]
push eax
call fcn.0047d6b0
add esp, 0xc
mov dword [ebp - 0x2cc], 0x10001
lea ecx, [ebp - 0x2cc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x47ca35
mov ecx, dword [ebp - 0x214]
cmp ecx, dword [ebp + 0xc]
jne 0x47ca35
jmp 0x47ca37
jmp 0x47c9b7
mov esp, ebp
pop ebp
ret

Function at 0x47f6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x493af8
cmp edx, dword [eax]
je 0x47f6d2
add eax, 8
inc ecx
cmp eax, 0x493b88
jl 0x47f6c3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x493af8]
jne 0x47f800
mov eax, dword [0x496c50]
cmp eax, 1
je 0x47f7da
test eax, eax
jne 0x47f703
cmp dword [0x493834], 1
je 0x47f7da
cmp edx, 0xfc
je 0x47f800
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47f73a
lea eax, [ebp - 0x1a4]
push 0x4965c0
push eax
call fcn.0047db20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0047d8a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x47f77d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0047d8a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4965bc
push edi
call fcn.0047dcd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4965a0
push eax
call fcn.0047db20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0047db30
lea eax, [ebp - 0xa0]
push 0x49659c
push eax
call fcn.0047db30
push dword [esi + 0x493afc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0047db30
push 0x12010
lea eax, [ebp - 0xa0]
push 0x496574
push eax
call fcn.00481c78
add esp, 0x2c
pop edi
jmp 0x47f800
lea eax, [ebp + 8]
lea esi, [esi + 0x493afc]
push 0
push eax
push dword [esi]
call fcn.0047d8a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40b620
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x485d1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047a585
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b6a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004780bd
mov eax, dword [eax]
push 0x5b5c9c
push eax
call fcn.0046a354
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047a810
test bl, bl
je 0x40b6a2
push 0x5b5c9c
lea ecx, [esp + 0xc]
call fcn.0047aba0
push 0x5b5ca8
lea ecx, [esp + 0xc]
call fcn.0047aba0
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b6de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047a810
jmp 0x40b7a9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b762
lea edx, [esp + 0x7c]
push 0x5b5ca4
push edx
call fcn.0046a354
add esp, 8
test eax, eax
je 0x40b762
lea eax, [esp + 0x7c]
push 0x5b5ca0
push eax
call fcn.0046a354
add esp, 8
test eax, eax
je 0x40b762
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b6f2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0047a810
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40bfa0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c002
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc