joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40841e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40dd30], ebx
push esi
push edi
jne 0x40849e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4084d9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ad54
push edi
call esi
test eax, eax
mov dword [0x40dd30], eax
je 0x4084d9
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40dd34], eax
call esi
cmp dword [0x40db6c], 2
mov dword [0x40dd38], eax
jne 0x40849e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40dd40], eax
je 0x40849e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40dd3c], eax
mov eax, dword [0x40dd3c]
test eax, eax
je 0x4084e3
call eax
test eax, eax
je 0x4084ca
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40dd40]
test eax, eax
je 0x4084ca
test byte [ebp - 8], 1
jne 0x4084e3
cmp dword [0x40db78], 4
jb 0x4084dd
or byte [ebp + 0x12], 0x20
jmp 0x408502
xor eax, eax
jmp 0x408512
or byte [ebp + 0x12], 4
jmp 0x408502
mov eax, dword [0x40dd34]
test eax, eax
je 0x408502
call eax
mov ebx, eax
test ebx, ebx
je 0x408502
mov eax, dword [0x40dd38]
test eax, eax
je 0x408502
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40dd30]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40925e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00406ab0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4092f9
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40db6c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4092f9
cmp eax, 1
je 0x40931a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4092f9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4092c6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4092f5
xor eax, eax
inc eax
jmp 0x409339
cmp edi, eax
jae 0x4092fd
xor eax, eax
jmp 0x409339
cmp eax, esi
jae 0x409304
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40db6c]
jmp 0x40931d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402c2b
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41dd70
call fcn.00403480
push 1
call fcn.00402cae
pop ecx
test al, al
jne 0x402adc
push 7
call fcn.00403035
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00402c79
mov byte [ebp - 0x24], al
mov eax, dword [0x41fc2c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x402ad5
test eax, eax
jne 0x402b46
mov dword [0x41fc2c], ecx
push 0x413188
push 0x413164
call fcn.0040845c
pop ecx
pop ecx
test eax, eax
je 0x402b29
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x402c25
push 0x413160
push 0x413144
call fcn.00408400
pop ecx
pop ecx
mov dword [0x41fc2c], 2
jmp 0x402b4b
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00402e1b
pop ecx
call fcn.00403419
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402b7b
push esi
call fcn.00402d91
pop ecx
test al, al
je 0x402b7b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00402eb0
call esi
call fcn.0040341f
mov esi, eax
cmp dword [esi], edi
je 0x402b99
push esi
call fcn.00402d91
pop ecx
test al, al
je 0x402b99
push dword [esi]
call fcn.004086da
pop ecx
call fcn.00408784
mov edi, dword [eax]
call fcn.0040877e
mov esi, eax
call fcn.004083e7
push eax
push edi
push dword [esi]
call main
add esp, 0xc
mov esi, eax
call fcn.00403151
test al, al
jne 0x402bc9
push esi
call fcn.00408712
test bl, bl
jne 0x402bd2
call fcn.004086b5
push 0
push 1
call fcn.00402e38
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x402c25
call fcn.004034c6
ret
call fcn.0040335c
jmp 0x402abd

Function at 0x404b00
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4163b4
push 0x4163ac
push str.FlsAlloc
push 0
call fcn.00404a80
mov esi, eax
add esp, 0x10
test esi, esi
je 0x404b32
push dword [ebp + 8]
mov ecx, esi
call fcn.00402eb0
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x404b74
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4163c4
push 0x4163bc
push str.FlsGetValue
push 2
call fcn.00404a80
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x404ba5
mov ecx, esi
call fcn.00402eb0
call esi
jmp 0x404bab
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x404bae
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x4163cc
push 0x4163c4
push str.FlsSetValue
push 3
call fcn.00404a80
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x404be2
mov ecx, esi
call fcn.00402eb0
call esi
jmp 0x404be8
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x406409
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004062a4

Function at 0x40ec34
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e5a2

Function at 0x40ec3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040e7dd
Function at 0x402840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402859
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402894
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402890
lea ebx, [ebx]
cmp esi, eax
jae 0x402894
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402880
cmp esi, eax
jb 0x40289a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4031e0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x18
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031f0
sub eax, edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403204
push ebp
sub eax, edx
mov ebp, eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403354
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push esi
push edi
lea ecx, [esp + 0x10]
push ecx
push 0x46dd60
push edx
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40326f
mov eax, dword [esp + 0x10]
push 0xd
push 0x46dd50
push 1
push 0
push 0
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call edi
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x10]
push edx
push 0x46dd50
push eax
call ebx
test eax, eax
jne 0x40334a
mov ecx, dword [esp + 0x10]
push 0xe
push 0x46dd40
push 1
push eax
push eax
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x46dd34
push eax
call ebx
test eax, eax
jne 0x4032c7
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ebp
push ecx
push 1
push eax
push eax
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 0x46dd2c
push edx
call ebx
test eax, eax
jne 0x403343
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x46dd24
push ecx
call ebx
test eax, eax
jne 0x40333c
mov edx, dword [esp + 0x18]
push eax
push 0x46dc24
push 1
push eax
push eax
push edx
call esi
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push str.a9_1
push ecx
call ebx
test eax, eax
jne 0x403335
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push edx
push eax
push 2
push 0
push 0
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call edi
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x14]
push ecx
call edi
mov edx, dword [esp + 0x10]
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call edi
pop edi
pop esi
pop ebx
pop ebp
add esp, 0x18
ret
Function at 0x413fc0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.00413ed0
mov esi, eax
test esi, esi
je 0x4140b0
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push eax
call fcn.00413ab0
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov dword [esp + 0x18], eax
call ebp
push esi
call edi
test eax, eax
jne 0x414004
mov dword [esp + 0x10], eax
jmp 0x414019
cmp dword [eax], 0x28
jne 0x41400e
mov ebx, dword [eax + 4]
jmp 0x414012
movzx ebx, word [eax + 4]
push esi
call ebp
mov dword [esp + 0x10], ebx
push esi
call edi
test eax, eax
jne 0x414024
xor ebx, ebx
jmp 0x414035
cmp dword [eax], 0x28
jne 0x41402e
mov ebx, dword [eax + 8]
jmp 0x414032
movzx ebx, word [eax + 6]
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ecx], edx
mov ecx, dword [esp + 0x14]
push 0
mov dword [eax], ebx
mov edx, dword [edi + 4]
push ecx
push edx
call ebp
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push esi
push ebx
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.00413e30
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
push 1
push edx
push eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x4140b0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
add esp, 0xc
ret

Function at 0x4142c0
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x164
mov eax, dword [0x48bb84]
xor eax, esp
mov dword [esp + 0x160], eax
push esi
push 0
mov esi, ecx
call fcn.00415980
test eax, eax
je 0x4142ea
lea ecx, [esi + 0x5c]
call fcn.0043a5f6
push 0x4001
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
push 0x46ef50
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x41432f
push 0x46ef54
lea ecx, [esi + 0x58]
call fcn.00402700
xor eax, eax
pop esi
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0044b4c8
add esp, 0x164
ret
push edi
lea edi, [esi + 0x5c]
push eax
mov ecx, edi
call fcn.0043a66c
test eax, eax
jne 0x414365
push 0x46ef84
lea ecx, [esi + 0x58]
call fcn.00402700
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0044b4c8
add esp, 0x164
ret
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.USER32.dll_DestroyIcon]
push 0
push edi
mov ecx, esi
call fcn.004159a0
mov ecx, dword [esp + 0x168]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044b4c8
add esp, 0x164
ret
Function at 0x4143a0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x84
mov eax, dword [0x48bb84]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
mov ebx, ecx
call fcn.00415940
lea eax, [esp + 4]
push eax
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x4143f5
push 0x46efac
lea ecx, [ebx + 0x58]
call fcn.00402700
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0044b4c8
add esp, 0x84
ret
cmp byte [esp + 4], 0
push esi
lea esi, [esp + 8]
je 0x41444c
push edi
push esi
push 0xffff0000
mov ecx, ebx
call fcn.00414720
push esi
mov ecx, ebx
mov edi, eax
call fcn.00414a00
test eax, eax
je 0x414433
push 0xffff0002
push edi
push 0
push 0
push 0x46ef4a
mov ecx, ebx
call fcn.004158c0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414438
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x414402
pop edi
mov ecx, dword [esp + 0x88]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0044b4c8
add esp, 0x84
ret
Function at 0x414720
Capabilities:
Get file system object information

Disassembly:
push 0xffffffffffffffff
push 0x467836
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x48bb84]
xor eax, esp
mov dword [esp + 0x16c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48bb84]
xor eax, esp
push eax
lea eax, [esp + 0x184]
mov dword fs:[0], eax
mov eax, dword [esp + 0x194]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x198]
mov esi, ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00402660
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x194], 0
call fcn.00415240
push 0x5c
push eax
call fcn.004153b0
add esp, 8
lea ecx, [esp + 0x18]
mov bl, al
call fcn.004026d0
test bl, bl
je 0x4147bc
push 0x46efdc
lea ecx, [esp + 0x18]
call fcn.00401ff0
push 0x101
push 0x160
lea edx, [esp + 0x28]
push edx
push 0
lea ecx, [esp + 0x24]
call fcn.00402720
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push eax
call ebx
test eax, eax
jne 0x414800
push 0x46efe0
lea ecx, [esi + 0x58]
call fcn.00402700
lea ecx, [esp + 0x14]
call fcn.004026d0
xor eax, eax
jmp 0x4148ca
mov eax, dword [esp + 0x20]
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
push eax
call edi
mov ebp, dword [esp + 0x24]
push 0x103
push 0x160
lea ecx, [esp + 0x28]
push ecx
push 0
lea ecx, [esp + 0x24]
call fcn.00402720
push eax
call ebx
test eax, eax
jne 0x414839
push 0x46f000
jmp 0x4147e8
mov edx, dword [esp + 0x20]
push edx
call edi
mov edi, dword [esp + 0x24]
push 1
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
call fcn.00415240
push 0x46f020
push eax
call fcn.00415340
add esp, 8
lea ecx, [esp + 0x18]
mov bl, al
call fcn.004026d0
test bl, bl
je 0x414887
push 0
lea ecx, [esp + 0x18]
call fcn.00402740
dec eax
push eax
lea ecx, [esp + 0x1c]
call fcn.004153e0
mov eax, dword [esp + 0x1c]
push 0xffff0002
lea ecx, [esp + 0x18]
cmp eax, 0xffff0000
jne 0x4148a5
push eax
push edi
push ebp
call fcn.00402720
jmp 0x4148b5
push eax
push edi
push ebp
call fcn.00402720
push eax
mov ecx, esi
call fcn.00414900
push eax
mov ecx, esi
call fcn.004158c0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004026d0
mov eax, esi
mov ecx, dword [esp + 0x184]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x16c]
xor ecx, esp
call fcn.0044b4c8
add esp, 0x17c
ret 8
Function at 0x41af40
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
xor eax, eax
cmp byte [esi + 0xdd], al
je 0x41af9a
push 0x48d244
push eax
push esi
push 0x4062b0
mov byte [esi + 0xdd], al
push eax
push 0x48d248
mov byte [0x48d266], al
mov dword [0x48d248], 0xc
mov dword [0x48d24c], eax
mov dword [0x48d250], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
mov dword [0x48d240], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 5
mov ecx, esi
call fcn.00434328
pop esi
ret

Function at 0x41cc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468a6e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x48bb84]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0x1c]
mov dword [esp + 0x30], 0
call fcn.004252e0
push 0x47068c
lea ecx, [esp + 0x10]
call fcn.00425100
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x38], 1
call fcn.0041cd20
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 3
call fcn.004252d0
sub esp, 0xc
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00425170
mov ecx, esi
call fcn.0041cdc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 0
call fcn.004252d0
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004252d0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 0xc

Function at 0x41df20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468db3
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x48bb84]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x34]
lea eax, [esp + 0xc]
push edi
push eax
mov dword [esp + 0x34], 0
call fcn.004129e0
add esp, 8
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 1
call fcn.004251e0
sub eax, 2
push eax
push 2
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
call fcn.004254f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.004252e0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.004252d0
push edi
mov ecx, esi
call fcn.0041d9d0
mov edi, eax
cmp edi, 0xffffffff
je 0x41e018
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0xc]
push edx
push edi
add ecx, 8
call fcn.00402270
mov ecx, eax
call fcn.004252e0
push 0x470864
lea ecx, [esp + 0x1c]
call fcn.00425100
mov ecx, dword [esi + 0x18]
lea eax, [esp + 0x18]
push eax
push edi
add ecx, 8
mov byte [esp + 0x34], 3
call fcn.00402270
mov ecx, eax
call fcn.00425420
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 1
call fcn.004252d0
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esi + 0x18]
push edi
add ecx, 8
call fcn.00402270
mov ecx, eax
call fcn.00425420
lea ecx, [esp + 0xc]
mov byte [esp + 0x2c], 0
call fcn.004252d0
lea ecx, [esp + 0x38]
mov dword [esp + 0x2c], 0xffffffff
call fcn.004252d0
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret 0x10
Function at 0x42df46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42df6a
cmp dword [edi + 0x54], 0
jne 0x42df6a
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043a223
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042df07
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x433994
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4339db
call fcn.0043a223
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4339db
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4339f7
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0043350e
mov esi, eax
test edi, edi
je 0x4339f5
test ebx, ebx
je 0x4339f5
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4348e7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46bbc6
call fcn.0044e939
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x43490c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x434952
lea ecx, [ebp - 0x10]
call fcn.00402620
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004340aa
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402920
mov eax, esi
call fcn.0044ea11
ret 8

Function at 0x44b4c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48bb84]
jne 0x44b4d2
repz ret
jmp fcn.00452575
Function at 0x4038d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4038ee
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x403900
xor eax, eax
jmp 0x403932
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403924
cmp esi, eax
jae 0x4038fc
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403916
cmp esi, eax
jae 0x4038fc
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x405be5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405de0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405c80
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4260bc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x405c80
cmp eax, 1
je 0x405ca1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x405c80
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405c4d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405c7c
xor eax, eax
inc eax
jmp 0x405cc0
cmp edi, eax
jae 0x405c84
xor eax, eax
jmp 0x405cc0
cmp eax, esi
jae 0x405c8b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4260bc]
jmp 0x405ca4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret