joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fea4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x45ff2e
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x45ff21
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x45ff10
mov byte [ebp - 1], 0
push 0x1764
push 0
push 0x4641
push 0x42b8
push 0x834
push 0x438
push 0
push 1
push 0x5d77
push 1
lea eax, [ebp - 1]
push eax
call fcn.0045d8f4
add esp, 0x2c
jmp 0x45ff1f
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_TranslateMDISysAccel]
jmp 0x45ff2c
push 0
push 1
call fcn.00457791
pop ecx
pop ecx
jmp 0x45ff8d
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x45ff7c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x45ff6a
push 0x9a2
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x45ff7a
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
jmp 0x45ff8d
push 0
push 0x2f0d
push 0
call fcn.00457c2a
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x461284
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x461356
lea eax, [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x461300
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push 1
call fcn.0046138e
add esp, 0x14
jmp 0x461354
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x46132d
push 0x1319
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x461354
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x4c]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x46138a
lea eax, [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
push 0x1a25
push 0x7085
push 0x281a
push 1
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x54]
movzx eax, byte [eax]
push eax
push 0x512d
call fcn.0045614e
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x48c266
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x30], 0x506e
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0x693e93
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x24], 3
mov dword [ebp - 0x10], 0
jmp 0x48c2a6
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x48c2b9
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x2c], 0xffffffff
jmp 0x48c29f
cmp dword [ebp - 0x28], 0
je 0x48c344
mov dword [ebp - 0x40], 0x94a1888
mov dword [ebp - 0x44], 0xafd94fe5
mov dword [ebp - 0x48], 0xd6923607
mov dword [ebp - 0xc], 0xa20a2982
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
jmp 0x48c2fd
mov eax, dword [ebp - 0xc]
dec eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jl 0x48c342
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x48c334
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x27d
push 0xe1f
push 0x13cc
push 0x949
push 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, dword [ebp - 0xc]
cmp dword [ebp + eax*4 - 0x2c], 0
je 0x48c340
jmp 0x48c342
jmp 0x48c2f6
jmp 0x48c35f
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x48c35f
push 0x6cd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0
call fcn.00474eb8
pop ecx
mov dword [ebp - 0x14], 0x97f6af11
mov dword [ebp - 0x1c], 9
mov dword [ebp - 0x14], 0
jmp 0x48c385
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 6
jl 0x48c45d
mov dword [ebp - 0x18], 0
jmp 0x48c39f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x48c3b2
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x54], 0xffffffff
jmp 0x48c398
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x54]
dec eax
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x54], eax
mov dword [ebp - 0x1c], 0xfffffff4
jmp 0x48c3d7
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x17
jne 0x48c458
mov dword [ebp - 0x20], 0xfa72c25f
mov dword [ebp - 0x20], 1
jmp 0x48c3f4
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x48c429
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 3]
test eax, eax
je 0x48c413
push 0
push 0xb20
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 4]
test eax, eax
je 0x48c427
push 0
call dword [sym.imp.USER32.dll_RegisterClassA]
jmp 0x48c3ed
mov byte [ebp - 5], 0
movzx eax, byte [ebp - 5]
test eax, eax
je 0x48c453
push 0x1862
push 0x4ab
push 0xa08
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x48c3d0
jmp 0x48c37e
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49fc89
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a57c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0049262b
mov dword [ebp - 0x14], eax
cmp dword [0xa9ef9c], esi
jne 0x49fd7c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x49fd09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49fe5c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x49fe5c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49fe5c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xa9ef9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xa9efa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xa9efa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa9efac], eax
test eax, eax
je 0x49fd79
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xa9efa8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x49fda1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49fd94
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x49fdb6
push 4
pop eax
jmp 0x49fe5e
cmp dword [ebp - 0x14], esi
je 0x49fdb6
push dword [0xa9ef9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x49fd9b
mov eax, dword [0xa9efa8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x49fe14
cmp dword [0xa9efac], edi
je 0x49fe14
push eax
call ebx
push dword [0xa9efac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x49fe14
test eax, eax
je 0x49fe14
call ecx
test eax, eax
je 0x49fe09
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x49fe09
test byte [ebp - 8], 1
jne 0x49fe14
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x49fe44
mov eax, dword [0xa9efa0]
cmp eax, edi
je 0x49fe41
push eax
call ebx
test eax, eax
je 0x49fe41
call eax
mov esi, eax
test esi, esi
je 0x49fe41
mov eax, dword [0xa9efa4]
cmp eax, edi
je 0x49fe41
push eax
call ebx
test eax, eax
je 0x49fe41
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xa9ef9c]
call ebx
test eax, eax
je 0x49fe5c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x49fe5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048f60b
mov esp, ebp
pop ebp
ret
Function at 0xe61cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa53000]
push edi
jmp 0xe61cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xe61cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe61cc0
mov eax, 1
add ebx, ebx
jne 0xe61ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xe61cf4
jne 0xe61d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe61d13
dec eax
add ebx, ebx
jne 0xe61d00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xe61cd8
add ebx, ebx
jne 0xe61d0f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xe61d65
xor ecx, ecx
sub eax, 3
jb 0xe61d2b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xe61d9a
sar eax, 1
mov ebp, eax
jmp 0xe61d36
add ebx, ebx
jne 0xe61d36
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe61d04
inc ecx
add ebx, ebx
jne 0xe61d44
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xe61d04
add ebx, ebx
jne 0xe61d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xe61d46
jne 0xe61d62
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xe61d46
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xe61d84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xe61d76
jmp 0xe61cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xe61d84
add edi, ecx
jmp 0xe61cc6
pop esi
mov edi, esi
mov ecx, 0xbee
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xe61da2
cmp byte [edi], 6
jne 0xe61da2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xe61da7
lea edi, [esi + 0xa5f000]
mov eax, dword [edi]
or eax, eax
je 0xe61e16
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa9cda4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa9ce40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xe61dd4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa9ce48]
or eax, eax
je 0xe61e10
mov dword [ebx], eax
add ebx, 4
jmp 0xe61df1
call dword [esi + 0xa9ce44]
mov ebp, dword [esi + 0xa9ce4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xe61e4a
sub esp, 0xffffff80
jmp 0x419acc
Function at 0x401092
Capabilities:
Create process on windows
Self delete
Set file attributes
Terminate process

Disassembly:
sub esp, 0x408
mov eax, dword [0x41c390]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
mov dword [esp + 0x410], eax
push edi
jmp 0x4010c1
cmp dword [0x41fd20], 0
jg 0x4010dd
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call ebp
push eax
call fcn.00401030
mov dword [0x41fd28], eax
sub eax, dword [0x41fd24]
pop ecx
cmp eax, dword [0x41c080]
jle 0x4010b0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x41fd28]
sub eax, dword [0x41fd24]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, dword [0x41c080]
mov ebx, 0x4172ec
mov edi, str.open
jle 0x401135
push 0x41f210
lea eax, [esp + 0x18]
push 0x4172cc
push eax
call fcn.00409847
add esp, 0xc
push 0
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push dword [0x41fd00]
call esi
lea eax, [esp + 0x14]
push str._c_taskkill__f__PID
push eax
call fcn.00409847
pop ecx
pop ecx
mov dword [esp + 0x10], eax
call ebp
push eax
mov eax, dword [esp + 0x14]
lea eax, [esp + eax + 0x18]
push 0x4172b0
push eax
call fcn.00409847
add dword [esp + 0x1c], eax
add esp, 0xc
cmp dword [0x41fd20], 2
jne 0x40117d
push str.winrpt
push 1
call dword [sym.imp.wnhelp.dll__registerapp_8]
cmp dword [0x41fd20], 3
jne 0x4011ec
push 0x80
mov ebp, 0x41f810
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push str.winrpt
push 1
call dword [sym.imp.wnhelp.dll__registerapp_8]
xor eax, eax
push eax
push eax
push str.__c_sc_stop_MicrosoftServices
push ebx
push edi
push eax
call esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
push eax
push eax
push str.__c_sc_delete_MicrosoftServices
push ebx
push edi
push eax
call esi
mov eax, dword [esp + 0x10]
push 0x41fb00
push 0x41f210
push ebp
lea eax, [esp + eax + 0x20]
push str.__RMDIR___s___s__q__DEL__f__q___s___DEL__f___q___s___exit
push eax
call fcn.00409847
add esp, 0x14
push 0x41ee10
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
xor ebp, ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push dword [0x41fd00]
call esi
push ebp
call fcn.00409807
pop edi
pop esi
pop ebp
pop ebx

Function at 0x401438
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x41c390]
push esi
mov dword [ebp - 4], eax
push 0x400
lea eax, [ebp - 0x404]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, esi
je 0x4014a5
push esi
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x404]
push ecx
push esi
push 2
push 0x110
push 0xf01ff
push str.Windows_Help_Services
push str.MicrosoftServices
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, esi
jne 0x4014a9
xor eax, eax
jmp 0x4014b3
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.004098d0
leave
ret
Function at 0x403bec
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, 0x416121
call fcn.00409e24
sub esp, 0x28
mov eax, dword [0x41c390]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], 0xf
call fcn.00401d7f
push esi
push 0x80
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
or dword [ebp - 0x34], 0xffffffff
push eax
mov dword [ebp - 0x30], eax
call fcn.00408c89
pop ecx
push esi
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004034d6
push ebx
call fcn.004098e8
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00403492
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402059
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004098d0
leave
ret

Function at 0x403d18
Capabilities:
Delete file

Disassembly:
mov eax, 0x4161a8
call fcn.00409e24
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, 0x41ea10
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x41fd4c
call fcn.00403492
call fcn.00402e8e
add esp, 0x20
test eax, eax
je 0x403d62
push 0x2710
call ebx
jmp 0x403d3a
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call edi
mov esi, 0x41e610
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 8]
call fcn.00403942
call fcn.00402e8e
add esp, 0x20
test eax, eax
jne 0x403dd7
push 0x7d0
call ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push dword [ebp + 0xc]
call fcn.00403942
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x18], esp
push esi
push eax
mov byte [ebp - 4], 1
call fcn.00403bec
pop ecx
pop ecx
mov byte [ebp - 4], 0
call fcn.00402f7f
add esp, 0x38
test eax, eax
jbe 0x403dd7
push esi
call edi
xor eax, eax
inc eax
jmp 0x403dd9
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x404392
Capabilities:
Delete file
Set file attributes

Disassembly:
mov eax, 0x41624b
call fcn.00409e24
sub esp, 0xb8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push edi
xor edi, edi
mov esi, 0x41ea10
push esi
mov dword [ebp - 0x14], edi
call ebx
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x41fd4c
call fcn.00403492
call fcn.00402e8e
add esp, 0x20
cmp eax, edi
je 0x4043e4
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4043b8
push esi
call ebx
cmp dword [0x41fd38], edi
mov dword [ebp - 0x10], edi
jle 0x404517
mov edi, 0x41fd6c
mov esi, 0x41dbe0
mov ebx, 0x41d9e0
push str.http:__
push esi
call fcn.0040a9f0
push dword [ebp + 8]
push esi
call fcn.0040aa00
add esp, 0x10
cmp dword [edi + 0x14], 0x10
jb 0x404426
mov eax, dword [edi]
jmp 0x404428
mov eax, edi
push eax
push esi
call fcn.0040aa00
push 0x41dae0
push esi
call fcn.0040aa00
push str._micro4
push esi
call fcn.0040aa00
push ebx
push esi
call fcn.00403d18
add esp, 0x20
cmp eax, 1
je 0x404472
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x1c
cmp eax, dword [0x41fd38]
jl 0x404405
jmp 0x404517
and dword [0x41fd2c], 0
and dword [0x41fd30], 0
push esi
mov edi, 0x41ee10
push edi
call fcn.0040a9f0
pop ecx
pop ecx
push ebx
mov ecx, 0x41c094
call fcn.004034d6
xor ebx, ebx
inc ebx
push ebx
push 0x1b6
push 2
mov esi, 0x41e060
push esi
lea ecx, [ebp - 0xc4]
call fcn.0040425b
and dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00403ca6
push eax
lea eax, [ebp - 0xc4]
push eax
mov byte [ebp - 4], bl
call fcn.00402b32
add esp, 0x10
push 0
push ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0
call fcn.00402059
lea ecx, [ebp - 0xc4]
call fcn.00403964
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x14], ebx
call fcn.004042fb
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x4172f4
call fcn.004085ec
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x409744
Capabilities:
Terminate process

Disassembly:
push 8
push 0x417b20
call fcn.0040c958
push 8
call fcn.0040bd6a
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x420120], esi
jne 0x409778
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42011c], esi
mov al, byte [ebp + 0x10]
mov byte [0x420118], al
cmp dword [ebp + 0xc], edi
jne 0x4097c2
cmp dword [0x42194c], edi
je 0x4097b2
mov eax, dword [0x421948]
sub eax, 4
mov dword [0x421948], eax
cmp eax, dword [0x42194c]
jb 0x4097b2
mov eax, dword [eax]
cmp eax, edi
je 0x409793
call eax
jmp 0x409793
push 0x41c068
mov eax, 0x41c060
call fcn.004096c2
pop ecx
push 0x41c074
mov eax, 0x41c06c
call fcn.004096c2
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x4097f3
cmp dword [ebp + 0x10], edi
jne 0x409801
mov dword [0x420120], esi
push dword [ebp + 8]
call fcn.00409680
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x409800
push 8
call fcn.0040bcb5
pop ecx
ret
call fcn.0040c993
ret

Function at 0x40b1ea
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x40b206
call fcn.0040f773
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x40b278
push esi
push 0x8c
push 1
call fcn.004105ea
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40b25e
push esi
call fcn.0040eb28
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x40b158
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x40b256
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x40b275
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004098e8
test ebx, ebx
pop ecx
je 0x40b270
push ebx
call fcn.0040f785
pop ecx
or eax, 0xffffffff
jmp 0x40b277
mov eax, edi
pop esi
pop edi
pop ebx
ret
Function at 0x40b3b6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x417cd8
call fcn.0040c958
mov edi, 0x94
mov eax, edi
call fcn.0040aaf0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4200e0], ecx
mov eax, dword [esi + 4]
mov dword [0x4200ec], eax
mov edx, dword [esi + 8]
mov dword [0x4200f0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4200e4], esi
cmp ecx, 2
je 0x40b416
or esi, 0x8000
mov dword [0x4200e4], esi
shl eax, 8
add eax, edx
mov dword [0x4200e8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40b451
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b451
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40b469
cmp eax, 0x20b
je 0x40b456
mov dword [ebp - 0x1c], esi
jmp 0x40b47d
cmp dword [ecx + 0x84], 0xe
jbe 0x40b451
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40b477
cmp dword [ecx + 0x74], 0xe
jbe 0x40b451
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040df8e
pop ecx
test eax, eax
jne 0x40b491
push 0x1c
call fcn.0040b392
pop ecx
call fcn.0040ed22
test eax, eax
jne 0x40b4a2
push 0x10
call fcn.0040b392
pop ecx
call fcn.0040d39d
mov dword [ebp - 4], esi
call fcn.0040fdda
test eax, eax
jge 0x40b4bb
push 0x1b
call fcn.0040b36d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x421938], eax
call fcn.00410daa
mov dword [0x420124], eax
call fcn.00410d08
test eax, eax
jge 0x40b4e1
push 8
call fcn.0040b36d
pop ecx
call fcn.00410ad5
test eax, eax
jge 0x40b4f2
push 9
call fcn.0040b36d
pop ecx
push 1
call fcn.004096da
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40b508
push eax
call fcn.0040b36d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00410a78
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40b529
movzx eax, word [ebp - 0x40]
jmp 0x40b52c
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00407c43
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40b54a
push edi
call fcn.00409807
call fcn.00409829
jmp 0x40b57c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040c993
ret