joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d3f555d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x214]
sub esp, 0x294
mov eax, dword [0x6d410030]
xor eax, ebp
mov dword [ebp + 0x210], eax
mov eax, dword [ebp + 0x21c]
push ebx
push esi
push edi
push 0x10
pop edi
mov dword [ebp - 0x78], eax
call fcn.6d3f53ca
push 8
mov esi, eax
call fcn.6d3f582d
mov ebx, eax
pop ecx
lea eax, [ebp + 0xd0]
push eax
push dword [ebp - 0x78]
mov dword [ebp - 0x80], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x6d3f55c8
mov dword [ebx], eax
lea eax, [ebp + 0xfc]
mov dword [ebx + 4], eax
mov edi, dword [ebx + 4]
test edi, edi
je 0x6d3f55cf
and dword [ebx + 4], 0
jmp 0x6d3f55e4
xor eax, eax
jmp 0x6d3f56af
lea eax, [ebp - 0x70]
push eax
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
neg eax
sbb edi, edi
lea eax, [ebp - 0x44]
and edi, eax
test edi, edi
je 0x6d3f5695
push edi
call fcn.6d3f7a10
pop ecx
cmp eax, 4
jl 0x6d3f55bb
add eax, edi
cmp byte [eax - 4], 0x2e
jne 0x6d3f55bb
add eax, 0xfffffffd
push 0x6d40982c
push eax
mov dword [ebp - 0x74], eax
call fcn.6d3f8270
pop ecx
pop ecx
test eax, eax
je 0x6d3f562a
push 0x6d409828
push dword [ebp - 0x74]
call fcn.6d3f8270
pop ecx
pop ecx
test eax, eax
jne 0x6d3f55bb
push 0x3b
push edi
call fcn.6d3f93f0
pop ecx
pop ecx
test eax, eax
jne 0x6d3f55bb
push dword [ebp - 0x78]
call fcn.6d3f7a10
push edi
mov ebx, eax
call fcn.6d3f7a10
mov dword [ebp - 0x74], eax
add eax, ebx
push eax
call fcn.6d3f582d
lea ecx, [ebx - 1]
push ecx
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], eax
push eax
call fcn.6d4050f3
mov eax, dword [ebp - 0x74]
inc eax
push eax
push edi
mov edi, dword [ebp - 0x7c]
lea eax, [edi + ebx - 1]
push eax
call fcn.6d4050f3
mov ecx, dword [esi + 4]
add esp, 0x24
inc ecx
call fcn.6d3f5420
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov ebx, dword [ebp - 0x80]
mov dword [ecx + eax*4], edi
inc dword [esi + 4]
jmp 0x6d3f55bb
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.6d3f5895
push ebx
call fcn.6d3f5895
pop ecx
pop ecx
mov eax, esi
mov ecx, dword [ebp + 0x210]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d3f8259
add ebp, 0x214
leave
ret

Function at 0x6d3f8259
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d410030]
jne 0x6d3f8263
repz ret
jmp fcn.6d3fe721
Function at 0x6d4050f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x6d405102
pop dword [ebp - 0x4c]
mov eax, 0x79617770
sub eax, 0xc21266e
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xcd73c165
add dword [ebp - 0x5c], 0x80de83e6
mov dword [ebp - 0x58], 0xfc086d6e
add dword [ebp - 0x58], 0x362aded7
mov dword [ebp - 0x54], 0x1142eece
add dword [ebp - 0x54], 0x3b095560
mov dword [ebp - 0x50], 0xd0c21c47
add dword [ebp - 0x50], 0x2f3de3b9
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x976bbc75
add eax, 0xd5d4c3db
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xaec113a5
add dword [ebp - 0x5c], 0xc5b155b1
mov dword [ebp - 0x58], 0x6cc3851a
add dword [ebp - 0x58], 0xd4a8dc5b
mov dword [ebp - 0x54], 0x532eb13b
add dword [ebp - 0x54], 0x1040bb31
mov dword [ebp - 0x50], 0x600c8051
sub dword [ebp - 0x50], 0x600c8051
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3d55b
push 0
call eax
mov ecx, 0x1f971a2
add ecx, 0xfe06ded3
mov ebx, eax
mov edi, 0x6d416800
add edi, dword [ebp - 0x4c]
mov edx, 0x7f98151d
add dword [ebp - 0x24], 0x9487455a
mov esi, dword [edi]
sub dword [ebp - 0x38], 0x172e185e
add esi, edx
sub dword [ebp - 0x48], esi
mov dword [ebx], esi
xor dword [ebp - 0x20], 0xbb9acc24
add ebx, 0x85c77ee9
sub ebx, 0x85c77ee5
add edi, 4
loop 0x6d405213
add eax, 0x55d34e70
sub eax, 0x55d219c9
mov ebx, eax
add eax, 0xc611eef2
sub eax, 0xc611eeed
mov ecx, 0x6d3f0000
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x412a11
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonSize], eax
call fcn.0040fe60
pop ecx
mov ecx, dword [sym.TestFloatingPoint.exe_gMozillaPoisonSize]
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x412a49
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestFloatingPoint.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret
Function at 0x401e40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401ff0
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x401f3e
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x401ee1
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401f24
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401ef8
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401f13
test al, 0x40
je 0x401f0a
mov ecx, dword [edi + 0x20]
jmp 0x401f11
test al, 0x80
je 0x401f24
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401f24
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x401eb0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x407832
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x521386
push 0x521386
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x544a52
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x407878
push 6
call fcn.004fcda0
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x40ab4e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40ab8e
push 6
call fcn.004fcda0
add esp, 4
jmp 0x40ab93
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40ab99
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40abd9
push 6
call fcn.004fcda0
add esp, 4
jmp 0x40abde
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e7a75
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4e7ab0
push 6
call fcn.004fcda0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004fe760
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e7b13
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004fde10
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4e7b37
push 6
call fcn.004fcda0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004fe760
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e7b9a
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004fde10
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4e7bbe
push 6
call fcn.004fcda0
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004fe760
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4e7c21
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004fde10
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4e7c29
mov esp, ebp
pop ebp
ret
Function at 0x4eaaf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4eab36
push 6
call fcn.004fcda0
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x5449fb]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.00402e72
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.004fdf10
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4eab89
push ebx
call fcn.004fcd9a
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4eabc2
push 6
call fcn.004fcda0
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x4eabde
push eax
mov ebx, eax
call fcn.0040125a
inc eax
push eax
call fcn.004fcd94
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4eabe3
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4eabf4
push ebx
call fcn.004fcd9a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4fe680
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4fe69e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4fe693
pop esi
ret

Function at 0x4fe780
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebp, ebp
test esi, esi
je 0x4fe803
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4fe803
push ebx
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4fe7f6
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret
mov eax, ebp
pop esi
pop ebp
ret
Function at 0x4ff2b0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4ff2c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
push ebx
call fcn.00502380
add esp, 4
test eax, eax
jne 0x4ff2de
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4ff2f8
mov eax, dword [esp + 0x2c]
test eax, eax
jg 0x4ff2f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [ebx]
xor esi, esi
cmp eax, 1
jne 0x4ff3e0
mov ebp, dword [ebx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push esi
push esi
push ebp
call edi
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x14], ebx
jne 0x4ff330
push 2
push esi
push esi
push ebp
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x4ff347
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
sub esi, ebx
jmp 0x4ff34b
mov esi, dword [esp + 0x2c]
push esi
call fcn.005129d9
add esp, 4
mov ebx, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4ff384
push 2
push eax
push eax
push ebp
call edi
push ebx
call fcn.00512a02
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
xor edi, edi
test edx, edx
mov ecx, ebx
jbe 0x4ff3a0
mov al, byte [ecx]
test al, al
je 0x4ff3a0
cmp al, 0x1a
je 0x4ff3a0
inc edi
inc ecx
cmp edi, edx
jb 0x4ff390
lea ecx, [edi + 1]
push ecx
call fcn.004fcfe0
mov edx, dword [esp + 0x18]
add esp, 4
mov esi, eax
push 0
lea eax, [edi + edx]
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push ebx
push esi
call fcn.00507710
push ebx
mov byte [edi + esi], 0
call fcn.00512a02
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
cmp eax, 2
jne 0x4ff45b
mov ebx, dword [ebx + 4]
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x14]
test edi, edi
mov ebp, eax
jne 0x4ff3fa
or eax, 0xffffffff
jmp 0x4ff3fe
mov eax, dword [esp + 0x2c]
mov edx, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
push ecx
push eax
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov edx, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x4ff42d
mov cl, byte [edx]
test cl, cl
je 0x4ff42d
cmp cl, 0x1a
je 0x4ff42d
inc edi
inc edx
cmp edi, eax
jb 0x4ff41c
lea edx, [edi + 1]
push edx
call fcn.004fcfe0
add esp, 4
lea ecx, [edi + ebp]
mov esi, eax
mov eax, dword [ebx]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x18]
mov edx, dword [esp + 0x10]
push edi
push edx
push esi
call fcn.00507710
add esp, 0xc
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x4ff760
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.005129d9
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4ff7ca
push esi
lea edi, [eax + 0x400]
call fcn.00512a02
push edi
call fcn.005129d9
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x4ff79a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4ff7e6
push ecx
push esi
call fcn.00501c60
add esp, 8
mov ebx, eax
push esi
call fcn.00512a02
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x5048e0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5e2fdc]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5048f3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x504934
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x5e3084]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x504966
mov bl, byte [esp + ecx + 0x4c]
jmp 0x50496a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x50495b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x504988
mov bl, byte [esp + ecx + 0x4c]
jmp 0x50498c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x50497d
xor ecx, ecx
mov eax, 0x5e2fec
xor ebx, ebx
mov bl, byte [ecx + 0x5e3094]
cmp byte [esp + ebx + 0x14], 0
je 0x5049b7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x5e30ac]
cmp byte [esp + ebx + 0x14], 0
je 0x5049ce
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x50499e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x504927
lea edx, [esp + 0x84]
push edx
call fcn.00504a10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x5153ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5153ee
call fcn.00518700
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5153ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5153e5
xor eax, eax
jmp 0x5153f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005153fc
pop edi
pop esi
pop ebx
ret 4

Function at 0x516387
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x519fc8
call fcn.00508bd4
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00518700
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x5163c6
call fcn.00518700
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5163d4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5163e2
or eax, 0xffffffff
jmp 0x5164ca
mov ecx, esi
call fcn.005162fd
mov dword [ebp - 0x14], eax
call fcn.005139ee
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x516419
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x516419
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.005139a2
push dword [ebp - 0x14]
call fcn.005134d4
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00516095
cmp eax, edi
je 0x51648c
test byte [esi + 0x24], 0x10
je 0x51645a
push 4
mov ecx, esi
pop ebx
call fcn.00512ed4
test ah, 1
je 0x516452
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.005154fe
cmp dword [esi + 0x1c], edi
je 0x51648c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00512f08
jmp 0x51648c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x5164a0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x5164b9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x5164b9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00516337
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x518272
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5182a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5182be
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005181d8
jmp 0x5182be
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5182be
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005181d8
test edi, edi
mov eax, edi
jne 0x5182a8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x47db9c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x47dba0]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call sym.__amsg_exit
jmp 0x4011d3
mov eax, dword [0x47dba0]
test eax, eax
jne 0x4011c9
mov dword [0x47dba0], 1
mov dword [esp + 4], 0x480014
mov dword [esp], 0x48000c
call sym.__initterm
jmp 0x4011d3
mov dword [0x47d01c], 1
mov eax, dword [0x47dba0]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x480008
mov dword [esp], section..CRT
call sym.__initterm
mov dword [0x47dba0], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x47db9c
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call sym.__pei386_runtime_relocator
mov dword [esp], sym.__gnu_exception_handler_4
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x47db5c], eax
mov dword [esp], sym.___mingw_invalidParameterHandler
call sym.__set_invalid_parameter_handler
call sym.__fpreset
mov eax, dword [0x47d004]
mov dword [esp + 4], 0x47d008
mov dword [esp], eax
call sym._duplicate_ppstrings
call sym.___main
mov eax, dword [0x45f0e4]
mov edx, dword [0x47d00c]
mov dword [eax], edx
mov ecx, dword [0x47d00c]
mov edx, dword [0x47d008]
mov eax, dword [0x47d004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._main
mov dword [0x47d014], eax
mov eax, dword [0x47d018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x47d014]
mov dword [esp], eax
call sym._exit
mov eax, dword [0x47d01c]
test eax, eax
jne 0x4012de
call sym.__cexit
mov eax, dword [0x47d014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret