joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c090
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4a9a76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4e895c]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.00498e49
push str..
lea ecx, [esp + 0x10]
call fcn.0049909c
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x47c133
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00498cc0
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00498cc0
xor eax, eax
jmp 0x47c278
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x4e863c
push edx
call fcn.00488034
add esp, 8
test eax, eax
je 0x47c229
lea eax, [esp + 0x48]
push 0x4e8638
push eax
call fcn.00488034
add esp, 8
test eax, eax
je 0x47c229
test ebp, ebp
jne 0x47c195
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.004880e3
add esp, 8
test eax, eax
je 0x47c229
push esi
lea ecx, [esp + 0x14]
call fcn.00498e49
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004990c3
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0049909c
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x47c1d5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x47c1f7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0047c090
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x47c229
test edi, edi
je 0x47c21e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.004880e3
add esp, 8
test eax, eax
jne 0x47c21e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0047c2a0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x47c143
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00498cc0
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.00498cc0
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x47c2a0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a9a8b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004888f0
mov eax, dword [0x4e895c]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.00498e49
push 0x5c
lea ecx, [esp + 8]
call fcn.004990c3
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.0049909c
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47c346
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00498cc0
xor eax, eax
jmp 0x47c3c3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x47c3a1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x47c393
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x47c36d
jmp 0x47c3a1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00498cc0
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x47c720
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47c786
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47c786
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47c767
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x47d320
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x47d369
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x47d7e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a9c80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0047d390
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047d410
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047d410
lea ecx, [esi + 0xc]
call fcn.00498c4b
lea ecx, [esi + 0x10]
call fcn.00498c4b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047e9a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047e9a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047e9a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00498cc0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00498cc0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x49b0dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49b115
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00499167
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049913f
jmp 0x49b121
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49c7cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49c80d
call fcn.004a2782
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49c80d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49c804
xor eax, eax
jmp 0x49c815
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049c81b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a2cb2
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 0x4a2ce0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a2cfe
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a2c18
jmp 0x4a2cfe
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a2cfe
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a2c18
test edi, edi
mov eax, edi
jne 0x4a2ce8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x428f38
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 8], 0
jge 0x428f5a
mov eax, 0xfffffffd
jmp 0x42900e
mov ebx, dword [0x14]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x428fdc
mov ebx, dword [0x14]
add ebx, 8
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 2
jne 0x428fae
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x428f97
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x14]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x429004
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x42900e
mov esp, ebp
pop ebp
ret 4
Function at 0x449190
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
mov ecx, dword fs:[0x30]
mov al, byte [ecx + 2]
leave
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40301c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x403028
push 0x403024
push 0x403020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x403028]
push dword [0x403024]
push dword [0x403020]
mov dword [0x403014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046d1]
lea edx, [fcn.00401a14]
sub eax, edx
push eax
push fcn.00401a14
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132e
push edi
call fcn.00401894
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018e3
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, esi
mov ebx, edi
sar ebx, cl
sub esi, ebx
push esi
lea esi, [0x4060e4]
xor esi, edi
push esi
call fcn.00401a14
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4019a4
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
invalid
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5df93b3e
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x17533d21
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x403b52
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093e8
cmp edx, dword [eax]
je 0x403b74
add eax, 8
inc ecx
cmp eax, 0x409478
jl 0x403b65
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093e8]
jne 0x403ca2
mov eax, dword [0x409c88]
cmp eax, 1
je 0x403c7c
test eax, eax
jne 0x403ba5
cmp dword [0x407234], 1
je 0x403c7c
cmp edx, 0xfc
je 0x403ca2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403bdc
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004047d0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004048c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403c1f
lea eax, [ebp - 0x1a4]
push eax
call fcn.004048c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404e40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004047d0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004047e0
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.004047e0
push dword [esi + 0x4093ec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004047e0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404db2
add esp, 0x2c
pop edi
jmp 0x403ca2
lea eax, [ebp + 8]
lea esi, [esi + 0x4093ec]
push 0
push eax
push dword [esi]
call fcn.004048c0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0xbf5e0c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a2c], 0
push esi
jne 0xbf5e43
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0xbf5e1d
mov dword [ecx*4 + 0x422a28], eax
inc ecx
cmp ecx, 0x100
jl 0xbf5e18
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0xbf5e74
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a28]
xor eax, esi
inc ecx
dec edx
jne 0xbf5e56
pop edi
not eax
pop esi
ret 0xc
Function at 0x72996e
Capabilities:
Parse pe header

Disassembly:
call fcn.00728189
lea esp, [esp + 3]
mov dword [esp + 0x34], edi
lea esp, [esp + 0x34]
mov eax, dword fs:[0x30]
jmp 0x7299cc
mov byte [esp + 0xa], bh
push edx
push dword [esp + 6]
push esp
lea esp, [esp + 3]
pop word [esp + 0x14]
jmp 0x729925
push word [esp + 7]
mov byte [esp + 2], dh
push esp
push edx
pop word [esp + 0xd]
jmp 0x729950
mov eax, dword [eax + 8]
push eax
jmp 0x728184
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x7299a6
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x40735f
pop dword [ebp - 8]
mov eax, 0x880d393f
add eax, 0x78333a20
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x44352
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0xaebe4b73
add ecx, 0x5142165d
xor esi, esi
add esi, eax
mov edx, 0x435400
add edx, dword [ebp - 8]
mov edi, 0x7317e8cf
add edi, 0x33e3bcc3
sub dword [ebp - 4], ecx
mov ebx, dword [edx]
xor dword [ebp - 4], 0x5f039354
add ebx, edi
xor dword [ebp - 4], esi
mov dword [esi], ebx
mov dword [ebp - 4], 0xcc35c01a
add esi, 4
add edx, 0x83e49fb0
sub edx, 0x83e49fac
loop 0x4073b5
add eax, 0xc5913ac6
sub eax, 0xc58fc0b3
xor ebx, ebx
add ebx, eax
add eax, 0x86898f3c
add eax, 0x797670c9
mov ecx, 0xe3cbfb82
add ecx, 0x1c74047e
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x122708be
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x10cc7fec
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], 0x44
push eax
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push str.java.exe__classpath_c:mvfjavalib_c:mvfjavalibjclient.jar_com.mitra.jservice_start.ServiceApplication_c:mvfjavaetcjclient.properties
push 0
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401072
push eax
push eax
push str.The_Java_Runtime_Environment_must_be_installed_and_the_RMI_server_must_be_running_to_start_the_Service_Client.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4018ae
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018ed
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018ed
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018ed
cmp dword [ecx + 0x74], 0xe
jbe 0x4018ed
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402a94
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004040cc
test esi, esi
jne 0x402aca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004041bc
jmp 0x402ae8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a8
mov edi, eax
test esi, esi
je 0x402ae8
cmp dword [ebx], 0
je 0x402ae8
dec esi
jmp 0x402ad1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d88
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4031ec
Capabilities:
Query or enumerate registry value

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

Function at 0x403f50
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48d04c], 0
je 0x403fb1
cmp word [0x48d220], 0xd7b2
jne 0x403f79
cmp dword [0x48d228], 0
jbe 0x403f79
mov eax, 0x48d21c
call dword [0x48d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x48a070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403fd8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48a034], 0
jne 0x403fcd
push 0
push 0x48a068
push 0x48a070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405f20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405f86
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040433c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402da4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405f70
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405f8d
lea eax, [ebp - 0x10]
call fcn.004040cc
ret

Function at 0x408a88
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.0040458c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x408aaa
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b55c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b595
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004041bc
jmp 0x40b59e
mov eax, ebx
mov edx, esi
call fcn.00404120
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b5a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b5c9
mov al, byte [esp]
jmp 0x40b5cb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40bc50
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bac8
mov eax, dword [0x48c0bc]
cmp byte [eax], 0
je 0x40bccc
mov eax, dword [0x48bdc8]
call fcn.00402bf4
call fcn.004028d4
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408c94
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bd14
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bd02
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x48bd4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x48d668]
call fcn.00405418
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret