joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453c72
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x453c8c
call fcn.00420a03
mov esi, dword [eax + 0xc]
push dword [0x58de98]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x453caa
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x453ca2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x453cd7
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x453ca4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00453ba0
mov esi, eax
jmp 0x453cc9

Function at 0x487790
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00418ae5
call fcn.00415a86
cmp eax, esi
pop esi
jne 0x4877ac
mov ecx, 0x58ce50
jmp fcn.00428e9f
ret

Function at 0x4efb4a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4efb62
mov edi, dword [esi + 0xc]
jmp 0x4efba2
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4efb7b
call fcn.0042377d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4efb90
call fcn.0042377d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4efba2
call fcn.0042377d
call fcn.00420a03
cmp dword [eax + 0x3c], 0
je 0x4efbb7
push edi
mov ecx, ebx
call fcn.004ee97c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004efa64
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4efbd5
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4efbe1
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x50baf1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5896f0]
jne 0x50bafb
repz ret
jmp fcn.005139e3
Function at 0x401360
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x401397
push 0
push str.Error
push 0x4829e4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x190
ret
mov eax, 1
add esp, 0x190
ret
Function at 0x408ae0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x3314b8c]
mov edx, 1
cmp eax, edx
jne 0x408af1
xor eax, eax
ret
push ebx
push esi
push edi
mov ecx, 0x2e248c
xor eax, eax
mov edi, 0x3314b68
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x11940c
xor eax, eax
mov edi, 0x19ce260
xor esi, esi
rep stosd dword es:[edi], eax
push 0x679e10
push esi
push 0x3314b68
push 0x404e40
stosb byte es:[edi], al
mov eax, dword [esp + 0x20]
or ebx, 0xffffffff
push esi
push esi
mov dword [0x3314b7c], eax
mov dword [0x3314b90], 2
mov dword [0x3314b88], 0xbb80
mov byte [0x3314b94], dl
mov dword [0x3314b95], esi
mov dword [0x3314b8c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [0x3314b8c], ebx
jne 0x408b8a
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
inc esi
cmp esi, 0xa
jg 0x408b8a
cmp dword [0x3314b8c], ebx
je 0x408b78
mov eax, dword [0x3314b8c]
pop edi
pop esi
pop ebx
ret

Function at 0x408f00
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x679e8c]
mov edx, 1
cmp eax, edx
jne 0x408f11
xor eax, eax
ret
push ebp
push esi
push edi
mov ecx, 0x4cf74b
xor eax, eax
mov edi, 0x679e18
rep stosd dword es:[edi], eax
xor esi, esi
mov dword [0x19c7f82], 0x1d
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
push esi
push esi
mov dword [0x679e78], eax
mov eax, dword [0x47bc58]
push 0x3daaaaab
push esi
push 6
push eax
push 0x19b7f68
mov dword [0x679ea8], 2
mov dword [0x679e7c], 0xbb80
mov dword [0x679e90], 2
mov byte [0x679eac], dl
mov dword [0x679ead], 2
mov dword [0x679e74], esi
mov dword [0x679e70], 5
mov dword [0x19c7f86], eax
call fcn.00408c00
add esp, 0x1c
or ebp, 0xffffffff
mov dword [0x679e8c], ebp
push 0x474c5bc
push esi
push 0x679e18
push 0x4070e0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
cmp dword [0x679e8c], ebp
jne 0x408fe5
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
inc esi
cmp esi, 5
jg 0x408fe5
cmp dword [0x679e8c], ebp
je 0x408fd3
xor edi, edi
mov esi, 0x32f9004
push edi
call fcn.004070a0
mov word [esi], ax
add esp, 4
add esi, 2
inc edi
cmp esi, 0x32f9204
jl 0x408fec
mov esi, 0xffff8000
push esi
call fcn.00407030
mov ecx, esi
add esp, 4
and ecx, 0xffff
inc esi
cmp esi, 0x8000
mov byte [ecx + 0x3e9ddc4], al
jl 0x409009
mov eax, dword [0x679e8c]
pop edi
pop esi
pop ebp
ret
Function at 0x40b330
Capabilities:
Create udp socket

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
push 0
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, dword [esp + 0x20]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40b368
push 0
push str.Error
push 0x482aa4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.WSOCK32.dll_htons]
push eax
mov word [esp + 0x10], 2
mov dword [esp + 0x14], 0
call edi
mov edx, dword [esi]
mov ebx, dword [sym.imp.WSOCK32.dll_bind]
lea ecx, [esp + 0xc]
push 0x10
push ecx
push edx
mov word [esp + 0x1a], ax
call ebx
cmp eax, 0xffffffff
jne 0x40b3d3
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call ebp
mov ax, word [0x47bcac]
inc ax
push eax
mov word [0x47bcac], ax
call edi
mov ecx, dword [esi]
mov word [esp + 0x12], ax
lea eax, [esp + 0x10]
push 0x10
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x40b3a7
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40b400
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov word [esp + 4], 2
mov dword [esp + 8], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov ecx, dword [esp + 0x14]
lea edx, [esp]
mov word [esp + 2], ax
mov eax, dword [esp + 0x18]
push 0x10
push edx
mov edx, dword [esp + 0x2c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
add esp, 0x10
ret
Function at 0x417f40
Capabilities:
Get disk information

Disassembly:
sub esp, 0x214
mov eax, dword [0x4833a8]
lea ecx, [esp + 0xc]
push 0x104
push ecx
push 0
lea edx, [esp + 0xc]
mov dword [esp + 0x10], eax
push 0
push edx
lea eax, [esp + 0x124]
push 0x104
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x417f95
add esp, 0x214
ret
mov eax, dword [esp]
test eax, eax
mov dword [0x4cf220], eax
jne 0x417fb4
mov ecx, dword [0x4cf224]
test ecx, ecx
je 0x417fb4
mov dword [0x4cf220], ecx
mov eax, ecx
test eax, eax
mov dword [0x19cd9a8], eax
mov dword [0x19b7b50], eax
jne 0x417fd2
mov ecx, dword [0x1e343a8]
test ecx, ecx
je 0x417fd2
mov dword [0x19cd9a8], ecx
add esp, 0x214
ret

Function at 0x4183a0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x538
push esi
push edi
push 0x482ab8
push str.pmr.txt
call fcn.00436ea0
mov esi, eax
add esp, 8
test esi, esi
jne 0x418412
mov eax, dword [esp + 0x544]
test eax, eax
je 0x41855c
mov eax, dword [0x4769704]
push esi
test eax, eax
jne 0x4183f5
push 0x48341c
push 0x483400
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x538
ret
push str.Attention_
push str.Error_file_pmr.txt_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x538
ret
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x140]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x144]
push 0x3ff
push eax
call fcn.004372c0
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
je 0x418453
push esi
call fcn.00436d20
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x538
ret
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x28]
xor edx, edx
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x40]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ecx
mov ecx, 0x40
rep stosd dword es:[edi], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], edx
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x14c]
push eax
push ecx
call fcn.00418190
add esp, 0x14
cmp eax, 4
jne 0x41850e
lea edx, [esp + 9]
push edx
call fcn.004371fb
mov dword [0x47bc78], eax
add esp, 4
movsx eax, byte [esp + 8]
lea ecx, [esp + 0x28]
sub eax, 0x30
push ecx
mov dword [0x47bc88], eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
lea edx, [esp + 0x18]
mov dword [0x474c5b8], eax
push edx
call fcn.004371fb
push esi
mov word [0x47bcae], ax
call fcn.00436d20
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x538
ret
push esi
call fcn.00436d20
mov eax, dword [esp + 0x548]
add esp, 4
test eax, eax
je 0x41855c
mov eax, dword [0x4769704]
push 0
test eax, eax
jne 0x41854a
push 0x48341c
push 0x4833c4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x538
ret
push str.Attention_
push str.Error_read_pmr.txt_
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor eax, eax
pop esi
add esp, 0x538
ret
Function at 0x41d520
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x1310
call fcn.00437090
push ebx
push esi
push edi
push 0x495568
lea eax, [esp + 0x350]
push str._sUsers.___
push eax
xor esi, esi
call fcn.00436cce
add esp, 0xc
lea ecx, [esp + 0xc]
lea edx, [esp + 0x34c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41d5d0
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea edi, [esp + 0xb50]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x750]
push eax
push 0x495568
push str._sUsers_s
push ecx
call fcn.00436cce
lea edx, [esp + 0x260]
lea eax, [esp + 0x160]
push edx
lea ecx, [esp + 0x764]
push eax
push ecx
call fcn.0041d3e0
add esp, 0x1c
cmp esi, 0x3e7
jge 0x41d5bc
mov word [edi], ax
inc esi
add edi, 2
lea edx, [esp + 0x10]
push edx
push ebx
call ebp
test eax, eax
jne 0x41d571
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov eax, dword [esp + 0x1320]
cmp eax, 0xea60
jge 0x41d606
xor ecx, ecx
test esi, esi
jle 0x41d608
lea edx, [esp + 0xb4c]
xor edi, edi
mov di, word [edx]
cmp eax, edi
je 0x41d5fe
inc ecx
add edx, 2
cmp ecx, esi
jge 0x41d608
jmp 0x41d5eb
inc eax
cmp eax, 0xea60
jl 0x41d5de
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1310
ret
Function at 0x41f380
Capabilities:
Create thread
Log keystrokes via application hook

Disassembly:
push ecx
push 0
push 0
push 0x41eda0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x1f6f074], eax
jne 0x41f3b3
lea eax, [esp]
push eax
push 0
push 0
push 0x41f140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ecx
ret
Function at 0x423fe0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword [0x32f9204]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x424074
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x424074
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ecx, [ecx + ecx + 2]
push ecx
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov ebp, eax
call fcn.00423f80
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov esi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebp
push ebx
lea ecx, [ecx + ecx + 2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4240b0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 0x484254
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea edi, [eax*4 + 0x4b5b78]
push edi
call fcn.004370f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4240eb
push 0x484250
push edi
call fcn.004370f0
mov esi, eax
add esp, 8
test esi, esi
je 0x4240f2
add esi, 2
test esi, esi
jne 0x4240f7
pop edi
xor eax, eax
pop esi
ret
push esi
call fcn.00423fe0
mov eax, dword [0x32f9204]
add esp, 4
push 1
push 0
push 0
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
pop edi
mov eax, 1
pop esi
ret

Function at 0x424130
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
lea esi, [eax + 6]
push esi
call fcn.00423fe0
mov ecx, dword [0x32f9204]
add esp, 4
push 1
push 0
push 0
push esi
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
mov eax, 1
pop esi
ret
Function at 0x42e7b0
Capabilities:
Get hostname
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x12c
push esi
push edi
push 0x10
push 0x1f822d8
call dword [sym.imp.WSOCK32.dll_gethostname]
push 0x1f822d8
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov eax, dword [eax + 0xc]
xor ecx, ecx
xor edx, edx
mov eax, dword [eax]
mov cl, byte [eax + 3]
mov dl, byte [eax + 2]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 1]
mov dl, byte [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._u._u._u._u
push eax
call fcn.00436cce
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add esp, 0x18
mov dword [0x46a99f0], ecx
mov ecx, dword [esp + 0x14]
mov dword [0x46a99f4], edx
lea edx, [esp + 8]
mov dword [0x46a99fc], ecx
push edx
mov dword [0x46a99f8], eax
mov byte [0x46a99ff], 0
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [0x19ce25c], eax
mov ecx, 0x9d8
xor eax, eax
mov edi, 0x476bbe4
rep stosd dword es:[edi], eax
push 1
call fcn.00434f20
mov esi, eax
add esp, 4
test esi, esi
jne 0x42e883
push 0x48481c
push 0x476bbe4
mov dword [0x47696e8], eax
call fcn.00436cce
mov edi, 0x476bbe4
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
inc esi
push esi
push 0x4423b8
push esi
push 0x476bbe4
call fcn.004014b0
push 0x1f821cc
push esi
push 0x476bbe4
push 0x15
call fcn.0042fc20
add esp, 0x20
test eax, eax
pop edi
pop esi
je 0x42e8bb
cmp eax, 0x3a91
mov dword [0x47696e8], eax
jl 0x42e8c5
mov dword [0x47696e8], 0
mov eax, dword [0x19ce25c]
add esp, 0x12c
ret
Function at 0x42eeb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x5208
call fcn.00437090
push esi
mov esi, dword [esp + 0x5210]
push edi
mov ecx, 0x1482
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esi*4 + 0x47ba2c]
push eax
lea eax, [esp + 0xc]
push 0x5208
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_recv]
mov edx, dword [0x47697a0]
add edx, eax
test eax, eax
mov dword [0x47697a0], edx
je 0x42ef17
cmp eax, 0xffffffff
je 0x42ef17
lea edx, [esp + 8]
push eax
push edx
call fcn.00412440
add esp, 8
pop edi
pop esi
add esp, 0x5208
ret
mov eax, dword [0x32f9204]
push eax
push esi
call fcn.0042ebb0
add esp, 8
pop edi
pop esi
add esp, 0x5208
ret

Function at 0x42ffe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x430013
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
sub esi, ecx
xor eax, eax
xor edx, edx
mov al, byte [esi + ecx]
mov dl, byte [ecx]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
add ebp, eax
inc ecx
dec edi
jne 0x42fff7
pop esi
mov eax, ebp
pop edi
pop ebp
ret
mov eax, ebp
pop edi
pop ebp
ret
Function at 0x434bf0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x24
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 4]
mov eax, dword [esp + 0x18]
mov dword [0x4cf22c], ecx
mov dword [0x4cf230], edx
mov dword [0x4cf234], eax
add esp, 0x24
ret

Function at 0x434c20
Capabilities:
Get common file path
Get hostname
Get session user name
Query environment variable

Disassembly:
sub esp, 0x404
push edi
push 0x47715a0
push 0x4dd8dc
mov dword [esp + 0xc], 0x100
call fcn.00436cce
add esp, 8
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x434c7d
mov edi, 0x4dd8dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, 0x4dd8dc
push 0x484b34
push ecx
call fcn.00436cce
add esp, 0xc
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea edx, [esp + 8]
push 0x105
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x434cc9
lea eax, [esp + 8]
mov edi, 0x4dd8dc
push eax
or ecx, 0xffffffff
xor eax, eax
push 0x484b34
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, 0x4dd8dc
push ecx
call fcn.00436cce
add esp, 0xc
lea ecx, [esp + 8]
push 0x105
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x434d05
mov edi, 0x4dd8dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push edx
add ecx, 0x4dd8dc
push 0x484b34
push ecx
call fcn.00436cce
add esp, 0xc
lea eax, [esp + 8]
push 0x400
push eax
push str.OS_OS_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp eax, 0x400
ja 0x434d49
lea ecx, [esp + 8]
mov edi, 0x4dd8dc
push ecx
or ecx, 0xffffffff
xor eax, eax
push 0x484b34
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, 0x4dd8dc
push ecx
call fcn.00436cce
add esp, 0xc
pop edi
add esp, 0x404
ret
Function at 0x43b52d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4852f0
cmp edx, dword [eax]
je 0x43b54f
add eax, 8
inc ecx
cmp eax, 0x485380
jl 0x43b540
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4852f0]
jne 0x43b67d
mov eax, dword [0x47715ec]
cmp eax, 1
je 0x43b657
test eax, eax
jne 0x43b580
cmp dword [0x484b58], 1
je 0x43b657
cmp edx, 0xfc
je 0x43b67d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43b5b7
lea eax, [ebp - 0x1a4]
push 0x43f84c
push eax
call fcn.0043c700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0043b6f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x43b5fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.0043b6f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43f848
push edi
call fcn.0043cc10
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x43f82c
push eax
call fcn.0043c700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0043c710
lea eax, [ebp - 0xa0]
push 0x43f828
push eax
call fcn.0043c710
push dword [esi + 0x4852f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0043c710
push 0x12010
lea eax, [ebp - 0xa0]
push 0x43f800
push eax
call fcn.0043d233
add esp, 0x2c
pop edi
jmp 0x43b67d
lea eax, [ebp + 8]
lea esi, [esi + 0x4852f4]
push 0
push eax
push dword [esi]
call fcn.0043b6f0
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 0x407ddf
Capabilities:
Parse pe header

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

Function at 0x412d66
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42366c
push 0x423664
push str.FlsAlloc
push 0x1e
call fcn.00412b93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412d9a
push dword [ebp + 8]
mov ecx, esi
call dword [0x42015c]
call esi
jmp 0x412da0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412de4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42367c
push 0x423674
push str.FlsGetValue
push 0x20
call fcn.00412b93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x412e1b
push dword [ebp + 8]
mov ecx, esi
call dword [0x42015c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40b780
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x271b8dc], 0x930
jne 0x40b79d
push str.zetiguhupidatoxagekelelorunad
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [0x271b8dc], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x271b5f8], eax
jne 0x40b7c3
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x402f7c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47a008], 0x8088405
inc edx
mov dword [ebx + 0x47a008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40367c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47a024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403714
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4036f4
xor eax, eax
push ebp
push 0x4036ed
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403730
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4036f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x47a024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47a024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404520
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ce048], 0
je 0x404581
cmp word [0x4ce21c], 0xd7b2
jne 0x404549
cmp dword [0x4ce224], 0
jbe 0x404549
mov eax, 0x4ce218
call dword [0x4ce234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045a8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47a030], 0
jne 0x40459d
push 0
push 0x47a754
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret