joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404197
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422010]
jne 0x4041a1
repz ret
jmp fcn.004055ae

Function at 0x40759e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4227d0]
je 0x4075b9
inc edi
cmp edi, 0x17
jb 0x4075aa
cmp edi, 0x17
jae 0x407739
push ebp
push 3
call fcn.0040a5d5
cmp eax, 1
pop ecx
je 0x407705
push 3
call fcn.0040a5d5
test eax, eax
pop ecx
jne 0x4075ed
cmp dword [0x422004], 1
je 0x407705
cmp ebx, 0xfc
je 0x407738
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x426888
push ebp
call fcn.00409aa9
add esp, 0xc
test eax, eax
je 0x407623
push esi
push esi
push esi
push esi
push esi
call fcn.00407117
add esp, 0x14
push 0x104
mov esi, 0x4268a1
push esi
push 0
mov byte [0x4269a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407667
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00409aa9
add esp, 0xc
test eax, eax
je 0x407667
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407117
add esp, 0x14
push esi
call fcn.00404700
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4076ac
push esi
call fcn.00404700
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x426b9c
push 0x41a9ac
sub ecx, eax
push ecx
push eax
call fcn.004099f6
add esp, 0x14
test eax, eax
je 0x4076ac
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407117
add esp, 0x14
jmp 0x4076ae
xor esi, esi
push 0x41a9a8
push ebx
push ebp
call fcn.0040993e
add esp, 0xc
test eax, eax
je 0x4076ce
push esi
push esi
push esi
push esi
push esi
call fcn.00407117
add esp, 0x14
push dword [edi*8 + 0x4227d4]
push ebx
push ebp
call fcn.0040993e
add esp, 0xc
test eax, eax
je 0x4076f0
push esi
push esi
push esi
push esi
push esi
call fcn.00407117
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040a418
add esp, 0xc
jmp 0x407738
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x407738
cmp ebp, 0xffffffff
je 0x407738
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4227d4]
push dword [esi]
call fcn.00404700
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40a418
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004062cd
xor ebx, ebx
cmp dword [0x426f50], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40a4ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a5ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40a5ce
push eax
call fcn.0040625f
mov dword [esp], 0x41b39c
push edi
mov dword [0x426f50], eax
call esi
push eax
call fcn.0040625f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x426f54], eax
call esi
push eax
call fcn.0040625f
mov dword [0x426f58], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040732b
test eax, eax
pop ecx
pop ecx
je 0x40a4bc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407117
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40a4ee
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040625f
cmp eax, ebx
pop ecx
mov dword [0x426f60], eax
je 0x40a4ee
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040625f
pop ecx
mov dword [0x426f5c], eax
mov eax, dword [0x426f5c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40a573
cmp dword [0x426f60], ecx
je 0x40a573
push eax
call fcn.004062d6
push dword [0x426f60]
mov esi, eax
call fcn.004062d6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40a573
cmp edi, ebx
je 0x40a573
call esi
cmp eax, ebx
je 0x40a540
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a540
test byte [ebp - 0x18], 1
jne 0x40a573
lea eax, [ebp - 0x10]
push eax
call fcn.00407362
test eax, eax
pop ecx
je 0x40a55b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407117
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40a56a
or dword [ebp + 0x10], 0x200000
jmp 0x40a5ae
or dword [ebp + 0x10], 0x40000
jmp 0x40a5ae
mov eax, dword [0x426f54]
cmp eax, dword [ebp - 8]
je 0x40a5ae
push eax
call fcn.004062d6
cmp eax, ebx
pop ecx
je 0x40a5ae
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40a5ae
mov eax, dword [0x426f58]
cmp eax, dword [ebp - 8]
je 0x40a5ae
push eax
call fcn.004062d6
cmp eax, ebx
pop ecx
je 0x40a5ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x426f50]
call fcn.004062d6
cmp eax, ebx
pop ecx
je 0x40a5ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a5d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414cb0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x414cc7
mov eax, 0xfffffff8
jmp 0x414d02
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0x21
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x414ced
mov eax, 1
jmp 0x414d02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x414cff
mov eax, 0x321
jmp 0x414d02
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8

Function at 0x414d10
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
jne 0x414d27
mov eax, 0xfffffff8
jmp 0x414d62
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x414d4d
mov eax, 1
jmp 0x414d62
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x414d5f
mov eax, 0x321
jmp 0x414d62
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8

Function at 0x414f00
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x414f19
mov eax, 0xfffffff8
jmp 0x414f59
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x414f3f
mov eax, 1
jmp 0x414f59
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x2efe
jne 0x414f56
or eax, 0xffffffff
jmp 0x414f59
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc

Function at 0x414f60
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x422010]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0x58]
cmp dword [ecx + 0xc], 0
jne 0x414f8c
mov eax, 0xfffffff8
jmp 0x414fdb
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x54], 0
lea edx, [ebp - 0x54]
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x48]
push ecx
push 0
push 5
mov edx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jne 0x414fc5
or eax, 0xffffffff
jmp 0x414fdb
lea ecx, [ebp - 0x48]
push ecx
call fcn.00404181
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404197
mov esp, ebp
pop ebp
ret 4
Function at 0x415030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0x80000001
push str.HKLM_
mov eax, dword [ebp + 8]
push eax
call fcn.0040b4fd
add esp, 8
test eax, eax
je 0x415065
mov ecx, dword [ebp + 8]
add ecx, 0xa
mov dword [ebp + 8], ecx
mov dword [ebp - 0x14], 0x80000002
lea edx, [ebp - 8]
push edx
push 0x20019
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415087
mov eax, dword [ebp + 0x10]
jmp 0x4150ce
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4150c1
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4150e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 1
mov eax, dword [ebp + 0x10]
mov word [eax], 0
mov dword [ebp - 0x14], 0x80000001
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x415120
xor eax, eax
jmp 0x415161
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 4], ecx
lea edx, [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x415154
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x415170
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x422010]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x838], ecx
mov eax, dword [ebp - 0x838]
cmp dword [eax + 0xc], 0
jne 0x415199
xor eax, eax
jmp 0x415210
mov dword [ebp - 0x830], 0x820
mov dword [ebp - 0x834], 0
lea ecx, [ebp - 0x834]
push ecx
lea edx, [ebp - 0x830]
push edx
lea eax, [ebp - 0x828]
push eax
push str.Link64_WebWebWeb
push 0xffff
mov ecx, dword [ebp - 0x838]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
jne 0x4151ef
xor eax, eax
jmp 0x415210
push 0x41e730
lea eax, [ebp - 0x828]
push eax
call fcn.00403960
add esp, 8
test eax, eax
jne 0x41520b
xor eax, eax
jmp 0x415210
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404197
mov esp, ebp
pop ebp
ret
Function at 0x417df0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x64
push 0x427208
push 0x41f8e4
call fcn.00417c00
add esp, 0xc
test eax, eax
jne 0x417e1e
push 0x41f8ec
push 0x427208
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push str.Live
push 0x427208
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp + 8]
mov dword [0x427138], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x14
push 0xc8
push 0xa
push 0xa
push 0x80800000
push 0x427070
push 0x427140
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x417e6f
xor eax, eax
jmp 0x417eca
cmp dword [0x427994], 0
jne 0x417eb9
mov dword [0x427994], 1
push 0xc8
push 0x190
call fcn.00417a20
add esp, 8
mov dword [ebp - 8], 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x419580
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xc], eax
jmp 0x417ec5
push 0x14
push 0x64
call fcn.00417a20
add esp, 8
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x417fb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x426418], 0
je 0x418037
mov dword [0x426418], 0
mov dword [ebp - 0x10], 0xedb88320
mov dword [ebp - 8], 0
jmp 0x417fe2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x418037
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 8
jmp 0x418003
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jle 0x418028
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x41801e
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x418026
mov edx, dword [ebp - 0xc]
shr edx, 1
mov dword [ebp - 0xc], edx
jmp 0x417ffa
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax*4 + 0x428030], ecx
jmp 0x417fd9
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
movzx eax, word [edx]
test eax, eax
je 0x418079
mov ecx, dword [ebp + 8]
mov dl, byte [ecx]
mov byte [ebp - 0x15], dl
mov eax, dword [ebp + 8]
add eax, 2
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx edx, byte [ebp - 0x15]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
xor ecx, dword [edx*4 + 0x428030]
mov dword [ebp - 4], ecx
jmp 0x41803e
mov eax, dword [ebp - 4]
not eax
mov esp, ebp
pop ebp
ret
Function at 0x418110
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x426414], 0
je 0x418197
mov dword [0x426414], 0
mov dword [ebp - 0x10], 0xedb88320
mov dword [ebp - 8], 0
jmp 0x418142
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x100
jge 0x418197
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 8
jmp 0x418163
mov edx, dword [ebp - 0x14]
sub edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 0
jle 0x418188
mov eax, dword [ebp - 0xc]
and eax, 1
je 0x41817e
mov ecx, dword [ebp - 0xc]
shr ecx, 1
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x418186
mov edx, dword [ebp - 0xc]
shr edx, 1
mov dword [ebp - 0xc], edx
jmp 0x41815a
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax*4 + 0x427c30], ecx
jmp 0x418139
mov edx, dword [ebp + 0x10]
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], 0
jmp 0x4181af
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp + 0xc]
jge 0x4181e9
mov edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ebp - 0x19], al
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
shr edx, 8
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp - 4]
and ecx, 0xff
xor eax, ecx
xor edx, dword [eax*4 + 0x427c30]
mov dword [ebp - 4], edx
jmp 0x4181a6
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4182a0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x422010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x3f
mov eax, dword [ebp + 8]
push eax
call fcn.00401000
add esp, 8
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4182cc
jmp 0x4183f2
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00417fb0
add esp, 4
mov dword [ebp - 8], eax
lea edx, [ebp - 0x52]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
push eax
push str._08u
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
call fcn.0040480a
cdq
mov ecx, 0xa
idiv ecx
mov word [ebp - 4], dx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x24], 4
mov word [ebp - 0x22], 2
mov word [ebp - 0x20], 7
mov word [ebp - 0x1e], 9
mov word [ebp - 0x1c], 5
mov word [ebp - 0x1a], 0
mov word [ebp - 0x18], 1
mov word [ebp - 0x16], 8
mov word [ebp - 0x14], 6
mov word [ebp - 0x12], 3
mov dword [ebp - 0x58], 0
jmp 0x418363
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x2c]
jge 0x4183ca
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xc]
mov cx, word [eax + edx*2]
mov word [ebp - 0x5c], cx
movzx edx, word [ebp - 0x5c]
sub edx, 0x30
mov word [ebp - 0x5c], dx
movzx eax, word [ebp - 4]
movzx ecx, word [ebp - 0x5c]
add ecx, eax
mov word [ebp - 0x5c], cx
movzx eax, word [ebp - 0x5c]
cdq
mov ecx, 0xa
idiv ecx
mov word [ebp - 0x5c], dx
movzx edx, word [ebp - 0x5c]
mov ax, word [ebp + edx*2 - 0x24]
mov word [ebp - 0x5c], ax
movzx ecx, word [ebp - 0x5c]
add ecx, 0x30
mov word [ebp - 0x5c], cx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 0x5c]
mov word [eax + edx*2], cx
jmp 0x41835a
movzx edx, word [ebp - 4]
add edx, 0x30
mov word [ebp - 0x54], dx
push str.timestamp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404197
mov esp, ebp
pop ebp
ret
Function at 0x40118e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4011e7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4011d8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4011d4
cmp esi, ecx
jae 0x4011d8
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x4011c4
cmp esi, ecx
jb 0x4011dc
xor eax, eax
jmp 0x4011e6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40126f
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x498800
push 0x422eb0
mov eax, dword fs:[0]
push eax
push ecx
push ecx
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x49e2e0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x2c], ecx
and dword [ebp - 0x24], 0
and dword [ebp - 0x50], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
push dword [ebp - 0x4c]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4012ed
xor al, al
jmp 0x40136d
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov byte [eax], 0xc3
lea eax, [ebp - 0x28]
push eax
push 0x140
push dword [ebp - 0x4c]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401316
xor al, al
jmp 0x40136d
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
push 0x40135b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40144f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x49e2e0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x128
mov dword [ebp - 0x138], ebx
mov ecx, edi
lea eax, [ebp - 0x134]
mov byte [eax], 0
inc eax
dec ecx
jne 0x40147b
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4014fd
lea eax, [ebp - 0x134]
push eax
push esi
mov dword [ebp - 0x134], edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4014f6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebx
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
jne 0x4014cd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x12c]
jmp 0x4014ff
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x4014e8
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x4014be
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
jne 0x4014d5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e4f3
leave
ret 4
Function at 0x405b2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x477234
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49e2e0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x49e2e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or ebx, 0xffffffff
cmp dword [ebp + 8], ebx
jne 0x405b79
xor eax, eax
jmp 0x405cfb
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x405ba7
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405ba7
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x405cfb
cmp dword [esi + 0x50], 0
je 0x405cf9
mov ecx, esi
call fcn.00406d3f
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x405bdb
push dword [esi + 0x50]
movsx eax, al
push eax
call fcn.0041f537
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
jmp 0x405cf9
push ecx
mov dword [esp + 0x3c], ecx
mov byte [esp + 0x2c], cl
push 8
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b], al
mov dword [esp + 0x44], 0xf
call fcn.004067b5
and dword [esp + 0x50], 0
lea eax, [esi + 0x48]
mov dword [esp + 0x24], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [esi + 0x40]
cmp edi, 0x10
mov edi, dword [esi]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
lea edx, [esp + 0x2c]
cmovae edx, dword [esp + 0x2c]
add eax, ecx
push eax
push edx
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
push dword [esp + 0x3c]
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x405cf0
cmp eax, 1
jg 0x405cd1
mov edi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x28]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x1c], edx
je 0x405c9e
push dword [esi + 0x50]
lea eax, [esp + 0x2c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.004202e9
mov edx, dword [esp + 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x405cf0
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x13]
mov byte [esi + 0x45], 1
cmp dword [esp + 0x20], eax
jne 0x405ccc
test edx, edx
jne 0x405c0b
cmp dword [esp + 0x38], 0x20
jae 0x405cf0
push edx
push 8
lea ecx, [esp + 0x30]
call fcn.004066c7
jmp 0x405c07
mov ebx, dword [ebp + 8]
jmp 0x405cf0
cmp eax, 3
jne 0x405cf0
mov eax, dword [esp + 0x14]
push dword [eax + 0x50]
movsx eax, byte [esp + 0x17]
push eax
call fcn.0041f537
pop ecx
cmp eax, ebx
cmovne ebx, dword [ebp + 8]
pop ecx
lea ecx, [esp + 0x28]
call fcn.00401647
mov eax, ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0041e4f3
mov esp, ebp
pop ebp
ret 4