joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e96d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 8]
xor esi, esi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e9c5
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg esi
sbb esi, esi
and esi, 0xfffffffe
mov eax, esi
jmp 0x40e9c8
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40eb25
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
push edi
push str.advapi32.dll
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ec73
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AllocateAndInitializeSid
push edi
call esi
push 0x43d2c4
push edi
mov dword [ebp - 0x28], eax
call esi
push str.GetTokenInformation
push edi
mov dword [ebp - 0x10], eax
call esi
push str.EqualSid
push edi
mov dword [ebp - 0x14], eax
call esi
push str.FreeSid
push edi
mov dword [ebp - 0x24], eax
call esi
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
test ecx, ecx
je 0x40ec6b
cmp dword [ebp - 0x10], ebx
je 0x40ec6b
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x40ec6b
cmp dword [ebp - 0x24], ebx
je 0x40ec6b
test eax, eax
je 0x40ec6b
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call ecx
lea eax, [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x18]
call fcn.004188c5
mov esi, eax
pop ecx
test esi, esi
je 0x40ec5c
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x1c]
call dword [ebp - 0x14]
mov dword [ebp - 0x14], ebx
cmp dword [esi], ebx
jbe 0x40ec55
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
push dword [eax]
push dword [ebp - 0x20]
call dword [ebp - 0x24]
test eax, eax
jne 0x40ec52
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
inc ecx
add eax, 8
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp ecx, dword [esi]
jb 0x40ec30
jmp 0x40ec55
xor ebx, ebx
inc ebx
push esi
call fcn.004188c0
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret
Function at 0x410282
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1918
call fcn.00412f90
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x190c], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x1900
mov dword [ebp - 0x1914], eax
push edi
lea eax, [ebp - 0x1904]
mov dword [ebp - 0x1918], esi
push 0
push eax
call fcn.00414350
add esp, 0xc
lea eax, [ebp - 0x190c]
push eax
push esi
push 2
push 0
push 2
call sub.MPR.dll_WNetOpenEnumA
test eax, eax
je 0x4102f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4103e8
mov dword [ebp - 0x1910], edi
jmp 0x410397
xor edi, edi
cmp dword [ebp - 0x1908], edi
jbe 0x41038d
lea esi, [ebp - 0x18f8]
mov eax, dword [esi - 4]
test eax, eax
je 0x410326
cmp eax, 1
jbe 0x410321
cmp eax, 3
jbe 0x410326
xor edx, edx
inc edx
jmp 0x410328
xor edx, edx
mov ecx, dword [esi]
and ecx, 2
je 0x41034d
test edx, edx
je 0x41034d
push ebx
push dword [ebp - 0x1914]
lea eax, [esi - 0xc]
push eax
call fcn.00410282
add esp, 0xc
cmp byte [ebx], 0
jne 0x41038d
jmp 0x41036a
test ecx, ecx
je 0x41036a
cmp eax, 2
jne 0x41036a
push dword [ebp - 0x1914]
push dword [esi + 8]
call fcn.0041bb48
pop ecx
pop ecx
test eax, eax
je 0x410378
inc edi
add esi, 0x20
cmp edi, dword [ebp - 0x1908]
jb 0x410310
jmp 0x41038d
mov eax, dword [ebp - 0x1918]
mov edx, ebx
mov ecx, dword [eax + 0x14]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x410383
mov dword [ebp - 0x1910], 0x1900
or dword [ebp - 0x1908], 0xffffffff
lea eax, [ebp - 0x1910]
push eax
lea eax, [ebp - 0x1904]
push eax
lea eax, [ebp - 0x1908]
push eax
push dword [ebp - 0x190c]
call sub.MPR.dll_WNetEnumResourceA
test eax, eax
je 0x4102fc
lea esi, [eax - 0x103]
neg esi
sbb esi, esi
and esi, eax
cmp dword [ebp - 0x190c], 0
je 0x4103e6
push dword [ebp - 0x190c]
call sub.MPR.dll_WNetCloseEnum
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret
Function at 0x411031
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x134]
push esi
mov esi, dword [ebp + 8]
push 0x130
push 0
push eax
mov dword [ebp - 0x13c], esi
call fcn.00414350
add esp, 0xc
test ebx, ebx
jne 0x411074
or eax, 0xffffffff
jmp 0x4111f4
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x41108c
push eax
call fcn.004188c0
and dword [ebx + 0x13c], 0
pop ecx
push edi
push 0xa
pop ecx
xor eax, eax
mov edi, ebx
push 0x108
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x28]
push 0
push eax
call fcn.00414350
mov eax, dword [ebx + 0x130]
mov edi, 0x130
add eax, edi
add dword [ebx + 0x134], eax
mov eax, dword [ebx + 0x134]
push 2
neg eax
push eax
push esi
call fcn.0041b4ed
push esi
push edi
lea eax, [ebp - 0x134]
push 1
push eax
call fcn.0042210b
add esp, 0x28
cmp eax, edi
je 0x4110ef
and dword [ebx + 0x130], 0
push 0xfffffffffffffffe
jmp 0x4111c2
push 9
pop ecx
push 0x24
lea eax, [ebp - 0x134]
mov edi, ebx
push eax
lea esi, [ebp - 0x134]
rep movsd dword es:[edi], dword [esi]
push str.Agent_Install_Additional_File___v01
call fcn.00418792
add esp, 0xc
test eax, eax
je 0x41111d
push 0xfffffffffffffffd
jmp 0x4111c2
push 4
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040e9cd
lea eax, [ebp - 0x138]
push eax
call fcn.0040eb08
add esp, 0x10
mov dword [ebx + 0x130], eax
lea esi, [ebp - 0x110]
lea edi, [ebx + 0x28]
push 0x41
pop ecx
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x28]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411158
sub ecx, esi
jmp 0x41116f
cmp byte [ebx + ecx + 0x28], 0x20
jne 0x411174
mov byte [ebx + ecx + 0x28], 0
sub ecx, 1
jns 0x411163
mov eax, dword [ebx + 0x138]
mov ecx, dword [ebx + 0x134]
sub eax, ecx
mov edx, dword [ebx + 0x130]
cmp edx, eax
jbe 0x411190
push 0xfffffffffffffffc
jmp 0x4111c2
mov esi, dword [ebp - 0x13c]
lea eax, [edx + ecx]
push 2
neg eax
push eax
push esi
call fcn.0041b4ed
mov eax, dword [ebx + 0x130]
inc eax
push eax
call fcn.004188c5
mov ecx, eax
add esp, 0x10
mov dword [ebx + 0x13c], ecx
test ecx, ecx
jne 0x4111c5
push 0xfffffffffffffffb
pop eax
jmp 0x4111f3
mov eax, dword [ebx + 0x130]
push esi
mov byte [ecx + eax], 0
push dword [ebx + 0x130]
push 1
push dword [ebx + 0x13c]
call fcn.0042210b
sub eax, dword [ebx + 0x130]
add esp, 0x10
neg eax
sbb eax, eax
and eax, 0xfffffffa
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412e47
mov esp, ebp
pop ebp
ret
Function at 0x41168b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x44e824]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0
push eax
call fcn.00414350
add esp, 0xc
test edi, edi
je 0x4117e5
test esi, esi
jne 0x4117d0
push ebx
push 0x105
lea esi, [edi + 0x135]
push 0
push esi
call fcn.00414350
add esp, 0xc
mov ebx, 0x104
push ebx
push esi
push str.TEMP
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x411719
cmp eax, ebx
jae 0x411719
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4116f9
sub ecx, edx
cmp byte [ecx + edi + 0x134], 0x5c
je 0x411762
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x41170f
jmp 0x411751
push ebx
push esi
push 0x43c320
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jle 0x41175c
cmp eax, ebx
jae 0x41175c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411733
sub ecx, edx
cmp byte [ecx + edi + 0x134], 0x5c
je 0x411762
lea edi, [esi - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411749
mov ax, word [0x438354]
mov word [edi], ax
jmp 0x411762
mov dword [esi], 0x5c3a43
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411767
sub ecx, edx
sub ebx, ecx
push ebx
push str.KASetup.log
push esi
call fcn.00423480
push 0x43def8
push esi
call fcn.0041bf81
add esp, 0x14
mov esi, eax
pop ebx
test esi, esi
je 0x4117e5
lea eax, [ebp - 0x48]
push eax
call fcn.0041be83
lea eax, [ebp - 0x48]
push eax
call fcn.00421d31
push eax
push str._Y__m__d__H:_M:_S
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.004236e4
lea eax, [ebp - 0x44]
push eax
push str.Installation_start_time:__s_n
push esi
call fcn.00411953
push esi
call fcn.0041acb0
add esp, 0x28
jmp 0x4117e5
push 0x105
lea eax, [edi + 0x135]
push esi
push eax
call fcn.0041bc30
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00412e47
mov esp, ebp
pop ebp
ret

Function at 0x42b244
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b0c3

Function at 0x4303c2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00430082
Function at 0x100027b0
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x1001d470]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, dword [str.mphost.exe]
mov dword [ebp - 0x210], eax
mov ecx, dword [0x1001a1f4]
mov dword [ebp - 0x20c], ecx
mov edx, dword [0x1001a1f8]
mov dword [ebp - 0x208], edx
mov eax, dword [0x1001a1fc]
mov dword [ebp - 0x204], eax
mov ecx, dword [0x1001a200]
mov dword [ebp - 0x200], ecx
mov dx, word [0x1001a204]
mov word [ebp - 0x1fc], dx
push 0x1f2
push 0
lea eax, [ebp - 0x1fa]
push eax
call fcn.1000cb40
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x418], cx
push 0x206
push 0
lea edx, [ebp - 0x416]
push edx
call fcn.1000cb40
add esp, 0xc
mov dword [ebp - 0x41c], 0
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x41c], eax
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x100028a4
push 0
push 0
push 0
push 0x10002740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.calc.exe
call fcn.100021d0
add esp, 4
push 1
call fcn.100088ee
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000743c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10004e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016238
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1001d470]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x10004ed0
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x10004edc
mov al, 1
jmp 0x1000507f
mov dword [ebp - 0x10], 8
call fcn.10001160
push eax
mov eax, dword [ebp - 0x58]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x58]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.10001160
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.10001110
add esp, 8
movzx eax, al
test eax, eax
je 0x10004f1f
xor al, al
jmp 0x1000507f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.100042e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x44]
push edx
lea ecx, [ebp - 0x34]
call fcn.10004470
mov ecx, eax
call fcn.100053f0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.10005200
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.10004470
mov ecx, eax
call fcn.100053f0
push eax
mov ecx, dword [ebp - 0x58]
add ecx, 0x4c
push ecx
mov edx, dword [ebp - 0x58]
mov ecx, dword [edx + 0x44]
call fcn.10005ba0
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x10004f9a
cmp dword [ebp - 0x5c], 1
je 0x10004fa1
cmp dword [ebp - 0x5c], 3
je 0x1000503b
jmp 0x10005053
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10004470
mov ecx, eax
call fcn.100053f0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x10005004
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.10004470
mov ecx, eax
call fcn.100053f0
push eax
call fcn.100084bf
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x10005004
mov byte [ebp - 0x51], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10002910
mov al, byte [ebp - 0x51]
jmp 0x1000507f
mov ecx, dword [ebp - 0x58]
movzx edx, byte [ecx + 0x49]
test edx, edx
jne 0x10005027
mov byte [ebp - 0x52], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10002910
mov al, byte [ebp - 0x52]
jmp 0x1000507f
cmp dword [ebp - 0x38], 0
jne 0x10005039
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.10004360
jmp 0x1000506b
mov byte [ebp - 0x53], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10002910
mov al, byte [ebp - 0x53]
jmp 0x1000507f
mov byte [ebp - 0x54], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.10002910
mov al, byte [ebp - 0x54]
jmp 0x1000507f
jmp 0x10004f32
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.1000743c
mov esp, ebp
pop ebp
ret

Function at 0x1000743c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001d470]
jne 0x10007446
repz ret
jmp fcn.1000ae97
Function at 0x100144be
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001d470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000d2b3
and dword [ebp - 0x14], 0
cmp dword [0x1001f214], 0
mov dword [ebp - 0x18], eax
jne 0x10014571
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10014619
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10014619
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001f214], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001f218], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001f21c], eax
call edi
push eax
call esi
mov dword [0x1001f224], eax
test eax, eax
je 0x10014571
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001f220], eax
mov eax, dword [0x1001f220]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100145ca
cmp dword [0x1001f224], ecx
je 0x100145ca
push eax
call esi
push dword [0x1001f224]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100145ca
test ebx, ebx
je 0x100145ca
call edi
test eax, eax
je 0x100145c1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100145c1
test byte [ebp - 8], 1
jne 0x100145ca
or dword [ebp + 0x10], 0x200000
jmp 0x100145fd
mov eax, dword [0x1001f218]
cmp eax, dword [ebp - 0x18]
je 0x100145fd
push eax
call esi
test eax, eax
je 0x100145fd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100145fd
mov eax, dword [0x1001f21c]
cmp eax, dword [ebp - 0x18]
je 0x100145fd
push eax
call esi
test eax, eax
je 0x100145fd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001f214]
call esi
test eax, eax
je 0x10014619
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001461b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000743c
leave
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x40f2b6
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f353
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f353
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f353
push 4
push 0xffffffffffffffff
push esi
push 0x40fa6d
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f353
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f31e
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f353
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f359
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f355

Function at 0x4146de
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x4146ee
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x4146f4
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x41471c
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x43a5e0]
test ax, ax
jne 0x414703
mov esi, ecx
jmp 0x41471f
movzx esi, si
pop edi
cmp cx, si
je 0x41473c
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x43a5e0]
test cx, cx
jne 0x414720
mov eax, 0x4390d8
jmp 0x414744
imul eax, edx, 0x1a
add eax, 0x43a5e2
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x41f587
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x41f596
pop dword [ebp - 0x3c]
mov eax, 0x41f596
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4239f
push 0
mov eax, 0x3acb0989
sub eax, 0x3a881689
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xcd8f9363
sub ecx, 0xcd8f516d
xor edx, edx
add edx, eax
mov esi, 0x44ba00
add esi, dword [ebp - 0x3c]
mov ebx, 0xccf4bb94
add ebx, 0x618accea
sub dword [ebp - 0x10], 0x8421c251
mov edi, dword [esi]
xor dword [ebp - 0x14], 0x77f092eb
xor edi, ebx
add dword [ebp - 0x1c], ecx
mov dword [edx], edi
sub dword [ebp - 0x10], 0x5e49e1d5
add edx, 4
add esi, 0xd47a1897
sub esi, 0xd47a1893
loop 0x41f5ec
add eax, 0xfaab
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xcecf6156
sub ecx, 0xce8f6156
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret