joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4195c5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
xor eax, eax
push edi
mov dword [ebp - 4], 1
test esi, esi
jbe 0x4195f9
mov edi, dword [edx]
mov dword [ecx + eax*4], edi
inc eax
add edx, 4
cmp eax, esi
jb 0x4195ec
mov eax, dword [ecx + esi*4 - 4]
mov edx, esi
imul edx, edx, 0xc
and dword [ebp + 8], 0
lea edx, [edx + ecx + 0x70]
mov dword [ebp - 8], edx
mov edx, 0xff
cmp dword [ebp + 8], 0
jne 0x419673
mov edi, eax
and edi, edx
movzx edi, byte [edi + str.cw]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
mov ebx, eax
shr eax, 8
shr ebx, 0x10
and eax, edx
movzx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
shl dword [ebp - 4], 1
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
or edi, ebx
shl edi, 8
or eax, edi
test dword [ebp - 4], 0x100
je 0x41966e
mov dword [ebp - 4], 0x1b
mov dword [ebp + 8], esi
jmp 0x4196be
cmp dword [ebp + 8], 4
jne 0x4196be
cmp esi, 6
jbe 0x4196be
mov edi, eax
shr edi, 0x10
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
and edi, edx
movzx edi, byte [edi + str.cw]
shl ebx, 8
or edi, ebx
mov ebx, eax
shr ebx, 8
and ebx, edx
movzx ebx, byte [ebx + str.cw]
shl edi, 8
and eax, edx
movzx eax, byte [eax + str.cw]
or edi, ebx
shl edi, 8
or eax, edi
xor eax, dword [ecx]
dec dword [ebp + 8]
mov dword [ecx + esi*4], eax
add ecx, 4
cmp ecx, dword [ebp - 8]
jne 0x419612
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41a854
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x41a868
xor eax, eax
leave
ret
lea eax, [ebp - 0x10]
push eax
call fcn.0041a83a
neg eax
sbb eax, eax
and eax, dword [ebp - 8]
pop ecx
leave
ret
Function at 0x41ec57
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x10]
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
inc eax
push 0x20
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
pop ebp
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
cmp eax, ebp
jbe 0x41ecbf
mov eax, ebp
mov dword [esi + 0x54], eax
mov eax, dword [esi]
push edi
mov dword [esi + 0x58], ebx
cmp eax, dword [esi + 0x20]
je 0x41ecfe
lea edi, [esi + 0xc8]
cmp dword [edi + 8], ebx
je 0x41ecdf
push edi
call fcn.0041e018
pop ecx
add edi, 0x28
dec ebp
jne 0x41ecd3
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
je 0x41ecf9
mov eax, dword [esi + 0x14]
push ecx
push eax
call dword [eax + 4]
pop ecx
pop ecx
mov dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
push dword [esi + 0x10]
lea eax, [esi + 0x98]
push eax
call fcn.0041df1b
mov eax, dword [esi + 0x58]
lea edi, [eax + 5]
imul edi, edi, 0x28
add edi, esi
inc eax
pop ecx
mov dword [esi + 0x58], eax
pop ecx
mov eax, edi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
call fcn.0041dfc1
mov ebp, eax
cmp ebp, ebx
jne 0x41ed69
lea eax, [edi + 0x20]
push eax
call fcn.00420408
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x41ed69
lea eax, [edi + 0x1c]
push eax
call fcn.00420408
mov ebp, eax
pop ecx
cmp ebp, ebx
jne 0x41ed69
push edi
call fcn.0041e9fc
mov ebp, eax
cmp ebp, ebx
je 0x41ed69
mov eax, esi
mov dword [esi + 0x44], ebx
call fcn.0041e07e
cmp ebp, ebx
pop edi
jle 0x41ed78
and ebp, 0xffff
or ebp, 0x80070000
cmp ebp, ebx
je 0x41ed7f
mov dword [esi + 0x40], ebp
cmp dword [esi + 0x38], ebx
jne 0x41ed91
cmp dword [esi + 0x40], ebx
jne 0x41ed91
cmp dword [esi + 0x3c], ebx
jne 0x41ed91
mov dword [esi + 0x44], ebx
mov eax, dword [esi + 0x44]
neg eax
sbb eax, eax
not eax
pop esi
and eax, ebp
pop ebp
pop ebx
ret

Function at 0x41ff83
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax + 0x20], 0x6a09e667
mov dword [eax + 0x24], 0xbb67ae85
mov dword [eax + 0x28], 0x3c6ef372
mov dword [eax + 0x2c], 0xa54ff53a
mov dword [eax + 0x30], 0x510e527f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0x1f83d9ab
mov dword [eax + 0x3c], 0x5be0cd19
ret

Function at 0x4203ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.004606bd
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.0042034a
add esp, 0x1c
leave
ret
Function at 0x42996d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
cmp ecx, 2
jne 0x429987
mov eax, dword [eax + 0xc]
mov dword [0x49efc0], eax
xor eax, eax
inc eax
pop ebp
ret
cmp ecx, 3
jne 0x429996
mov eax, dword [eax + 0x10]
mov dword [0x49efc4], eax
jmp 0x429982
push esi
xor esi, esi
cmp dword [eax + 8], esi
jne 0x4299a2
xor eax, eax
jmp 0x429a1e
mov ecx, dword [eax + 0x14]
mov dword [0x49ef98], ecx
mov ecx, dword [eax + 0x18]
mov dword [0x49ef9c], ecx
mov ecx, dword [eax + 0x1c]
mov dword [0x49efa0], ecx
mov ecx, dword [eax + 0x20]
mov dword [0x49efa4], ecx
mov ecx, dword [eax + 0x24]
mov dword [0x49efa8], ecx
mov ecx, dword [eax + 0x28]
mov dword [0x49efac], ecx
mov ecx, dword [eax + 0x2c]
mov dword [0x49efb0], ecx
mov ecx, dword [eax + 0x30]
mov dword [0x49efb4], ecx
lea ecx, [ebp + 8]
push ecx
push esi
mov dword [0x49efc0], esi
mov dword [0x49efc4], esi
push dword [eax + 8]
push 0x429925
push esi
push esi
call fcn.004606bd
push eax
call fcn.004298cf
xor eax, eax
add esp, 0x1c
cmp dword [0x49efc8], esi
sete al
pop esi
pop ebp
ret
Function at 0x431bb4
Capabilities:
Set file attributes

Disassembly:
test dword [esp + 8], 0xf0000000
je 0x431bc6
and dword [esp + 8], 0x3fff
jmp fcn.00431b62

Function at 0x431bcb
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x49ef94], 0
jne 0x431c05
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004219a1
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043da39
pop ecx
test esi, esi
pop esi
je 0x431c12
mov al, 1
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x431bff
xor al, al
leave
ret

Function at 0x431c8d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x49ef94], 0
jne 0x431cca
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004219a1
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043da39
pop ecx
test esi, esi
pop esi
je 0x431cd9
mov al, 1
leave
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x431cc4
xor al, al
leave
ret

Function at 0x431cdd
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004324b0
pop ecx
cmp eax, 0xffffffff
je 0x431d0b
test al, 0x10
jne 0x431d0b
test al, 1
je 0x431d0b
and eax, 0xfffffffe
push eax
push esi
call fcn.00431b62
pop ecx
pop ecx
test al, al
je 0x431d45
cmp byte [0x49ef94], 0
push esi
jne 0x431d3b
lea eax, [ebp - 0xc]
push eax
call fcn.004219a1
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043da39
pop ecx
test esi, esi
je 0x431d45
mov al, 1
jmp 0x431d47
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x431d35
xor al, al
pop esi
leave
ret
Function at 0x431d54
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x344
lea ebp, [esp - 4]
mov eax, dword [0x499020]
xor eax, ebp
mov dword [ebp + 0x344], eax
push 0x1c
mov eax, 0x4749cf
call fcn.0045ccb3
mov edi, dword [ebp + 0x350]
and dword [edi + 4], 0
mov eax, dword [edi]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x10], edi
mov esi, 0x114
cmp byte [0x49ef94], cl
jne 0x431e10
lea eax, [ebp + 0x22c]
push eax
push esi
mov byte [ebp + 0x22c], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x431e0c
cmp eax, esi
jae 0x431e0c
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp + 0x340], 0
call fcn.004219f5
pop ecx
pop ecx
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004215cf
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.0043da39
pop ecx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.0045c0da
add ebp, 0x348
leave
ret
xor al, al
jmp 0x431de9
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push esi
call ebx
mov edi, eax
test edi, edi
je 0x431e0c
cmp edi, esi
jae 0x431e44
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.00421577
jmp 0x431de7
lea ecx, [ebp - 0x1c]
call fcn.0042145b
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.00412cd9
push eax
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x431e7c
xor bl, bl
push dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
call fcn.0043da39
pop ecx
mov al, bl
jmp 0x431de9
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
push eax
mov word [eax + edi*2], cx
call fcn.00420c21
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x431e66
dec edi
cmp edi, esi
jne 0x431e66
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004215cf
mov bl, 1
jmp 0x431e68

Function at 0x431f33
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x4749ff
call fcn.0045ccb3
xor ebx, ebx
cmp byte [0x49ef94], bl
jne 0x431f78
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004219a1
mov eax, dword [eax]
pop ecx
pop ecx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0043da39
pop ecx
cmp esi, ebx
je 0x431f86
mov al, 1
call fcn.0045cd8b
ret
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x431f6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x431f97
xor al, al
jmp 0x431f72
lea ecx, [ebp - 0x50]
call fcn.00432169
lea ecx, [ebp - 0x28]
call fcn.0042145b
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00432630
test al, al
jne 0x431fcb
push dword [ebp - 0x28]
or dword [ebp - 4], 0xffffffff
call fcn.0043da39
pop ecx
mov al, bl
jmp 0x431f72
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
jmp 0x431fba
Function at 0x4324b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x49ef94], 0
jne 0x4324e6
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.004219a1
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0043da39
pop ecx
mov eax, esi
pop esi
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4324f6
or eax, eax
leave
ret

Function at 0x432c0b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x432c35
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x432c35
xor al, al
jmp 0x432c55
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.004600d0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop edi
leave
ret 4

Function at 0x432e01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x400000
cmp dword [ebp + 0xc], eax
jbe 0x432e11
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00432d6d

Function at 0x432e34
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, 0x400000
push esi
mov esi, ecx
cmp dword [ebp + 0xc], eax
jbe 0x432e49
mov dword [ebp + 0xc], eax
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
test eax, eax
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov ecx, dword [esi + 0x20d]
setne bl
cmp ecx, dword [esi]
jne 0x432eb7
add dword [esi + 0x211], eax
mov ecx, dword [esi + 0x219]
mov edx, dword [esi + 0x21d]
adc dword [esi + 0x215], 0
mov eax, ecx
or eax, edx
je 0x432eb7
mov eax, dword [0x49efac]
test eax, eax
je 0x432eb7
push edx
push ecx
push dword [esi + 0x215]
add esi, 0x221
push dword [esi - 0x10]
push esi
call eax
add esp, 0x14
pop esi
mov al, bl
pop ebx
leave
ret 0xc

Function at 0x433e0d
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push esi
mov esi, dword [ebp + 8]
and dword [esi + 4], 0
push str.GlobalMemoryStatusEx
push str.kernel32.dll
mov dword [esi], SysReAllocStringLen
mov dword [ebp - 0x60], 0x40
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433e66
lea ecx, [ebp - 0x60]
push ecx
call eax
test eax, eax
je 0x433e66
push dword [ebp - 0x54]
push dword [ebp - 0x58]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call fcn.00433dbe
add esp, 0x10
mov dword [esi + 4], edx
jmp 0x433e86
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jb 0x433e82
mov eax, dword [ebp - 0x18]
and dword [esi + 4], 0
mov dword [esi], eax
mov al, 1
pop esi
leave
ret
Function at 0x438f20
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x49f1e4], 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
jne 0x438f4a
call edi
push eax
push 0
push 0x438620
push 0xffffffffffffffff
call esi
mov dword [0x49f1e4], eax
cmp dword [0x49f1e8], 0
jne 0x438f66
call edi
push eax
push 0
push 0x438d60
push 3
call esi
mov dword [0x49f1e8], eax
mov eax, dword [0x49f1ec]
test eax, eax
jne 0x438f82
call edi
push eax
push 0
push 0x438e60
push 4
call esi
mov dword [0x49f1ec], eax
cmp dword [0x49f1e4], 0
pop edi
pop esi
je 0x438fa0
cmp dword [0x49f1e8], 0
je 0x438fa0
test eax, eax
je 0x438fa0
mov eax, 1
ret
xor eax, eax
ret

Function at 0x44324c
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 0x443293
call fcn.004443e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x443293
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4432af
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00442dc6
mov esi, eax
test edi, edi
je 0x4432ad
test ebx, ebx
je 0x4432ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x445826
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x47561e
call fcn.0045ccb3
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x44584b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x445891
lea ecx, [ebp - 0x10]
call fcn.00401c26
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.004433da
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.0040135b
mov eax, esi
call fcn.0045cd8b
ret 8

Function at 0x4486e7
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 0x44870b
cmp dword [edi + 0x54], 0
jne 0x44870b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004443e4
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.004486a8
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 0x44b7bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44b804
call fcn.004443e4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44b804
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x44b847
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44b830
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44b830
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x44b844
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45c0da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x499020]
jne 0x45c0e4
repz ret
jmp fcn.00462bed
Function at 0x46d2ee
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.0046376d
and dword [ebp - 4], 0
cmp dword [0x4a1b1c], 0
mov ebx, eax
jne 0x46d39f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46d450
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x484af8
push edi
call esi
test eax, eax
je 0x46d450
push eax
call fcn.004636fb
mov dword [esp], 0x484ae8
push edi
mov dword [0x4a1b1c], eax
call esi
push eax
call fcn.004636fb
mov dword [esp], 0x484ad4
push edi
mov dword [0x4a1b20], eax
call esi
push eax
call fcn.004636fb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a1b24], eax
call esi
push eax
call fcn.004636fb
pop ecx
mov dword [0x4a1b2c], eax
test eax, eax
je 0x46d39f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004636fb
pop ecx
mov dword [0x4a1b28], eax
mov eax, dword [0x4a1b28]
cmp eax, ebx
je 0x46d3f7
cmp dword [0x4a1b2c], ebx
je 0x46d3f7
push eax
call fcn.00463776
push dword [0x4a1b2c]
mov esi, eax
call fcn.00463776
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x46d3f7
test edi, edi
je 0x46d3f7
call esi
test eax, eax
je 0x46d3ee
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x46d3ee
test byte [ebp - 0xc], 1
jne 0x46d3f7
or dword [ebp + 0x10], 0x200000
jmp 0x46d430
mov eax, dword [0x4a1b20]
cmp eax, ebx
je 0x46d430
push eax
call fcn.00463776
pop ecx
test eax, eax
je 0x46d430
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x46d430
mov eax, dword [0x4a1b24]
cmp eax, ebx
je 0x46d430
push eax
call fcn.00463776
pop ecx
test eax, eax
je 0x46d430
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a1b1c]
call fcn.00463776
pop ecx
test eax, eax
je 0x46d450
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x46d452
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4139ce
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x413a23
push dword [esp + 0x10]
push 0x41394d
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4c5254]
test esi, esi
je 0x413a7c
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x413a1b
cmp byte [esi + 0x10], 0
je 0x413a1b
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x4139f7
jmp 0x413a7c
mov esi, dword [0x4c5254]
test esi, esi
je 0x413a7c
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x413a75
cmp byte [esi + 0x11], 0
je 0x413a51
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x413a68
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push ebp
push 0x4c5254
call fcn.00429834
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x413a30
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x415229
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x415288
cmp word [esi], di
je 0x415288
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00442e30
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004430e0
add esp, 0x10
test eax, eax
jne 0x415287
push 0x24
push 8
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x14], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 8], 1
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10
Function at 0x415721
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push dword [esp + 0x38]
xor esi, esi
mov dword [esp + 0x10], esi
call fcn.00492990
mov edi, dword [esp + 0x34]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x18]
push eax
push esi
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x415820
push ebx
mov ebx, dword [esp + 0x30]
lea eax, [edi + 0x18]
push esi
push dword [ebx + 0x18]
push eax
push ebp
push edi
push dword [esp + 0x48]
call fcn.00415c10
mov esi, eax
add esp, 0x18
test esi, esi
je 0x415784
cmp esi, edi
jge 0x415784
mov dword [esp + 0x34], ebp
jmp 0x415786
mov esi, edi
push dword [esp + 0x14]
call sub.MSVCRT.dll_strlen
mov word [esp + 0x2c], ax
mov eax, edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
cdq
mov dword [esp + 0x1c], eax
mov eax, esi
pop ecx
mov dword [esp + 0x1c], edx
cdq
push 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x40]
push eax
push 0x12
lea eax, [esp + 0x24]
mov dword [esp + 0x30], edx
push eax
push dword [ebx]
call edi
cmp dword [esp + 0x3c], 0x12
jne 0x415805
push 0
lea eax, [esp + 0x40]
push eax
movsx eax, word [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [ebx]
call edi
movsx eax, word [esp + 0x28]
cmp eax, dword [esp + 0x3c]
jne 0x415805
push 0
lea eax, [esp + 0x40]
push eax
push esi
push dword [esp + 0x40]
push dword [ebx]
call edi
cmp esi, dword [esp + 0x3c]
jne 0x415805
xor esi, esi
inc esi
jmp 0x415809
mov esi, dword [esp + 0x10]
push ebx
call fcn.00415e2a
pop ecx
push ebp
push 0
push dword [0x4c4fd4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
push dword [esp + 0x10]
call fcn.00492980
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x1c
ret 0x10