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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffc6c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1394], edx
mov dword [ebp - 4], edx
lea edi, [ebp - 0x138d]
xor eax, eax
push ebp
push 0x484a0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x484a24
call fcn.004843dc
call fcn.00484544
push 0
push 0x484a30
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x484a40
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x484a4c
push 0
push eax
call sub.user32.dll_FindWindowExA
mov esi, eax
push 5
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4848e6
push 0x1389
push edi
push ebx
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4848d8
lea edx, [ebp - 4]
mov eax, edi
call fcn.00409714
mov eax, dword [ebp - 4]
mov edx, 0x484a5c
call fcn.00404b54
jne 0x4848d8
mov edx, dword [0x4b6d78]
mov eax, ebx
call fcn.004846a0
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x4848a2
push 5
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
mov eax, dword [0x4b6d7c]
call fcn.00404c08
push eax
push 0
push 0xc
push ebx
call sub.user32.dll_SendMessageA
push 5
push esi
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x4849ed
push 0x1389
push edi
push ebx
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x4849db
lea edx, [ebp - 4]
mov eax, edi
call fcn.00409714
mov eax, dword [ebp - 4]
mov edx, 0x484a70
call fcn.00404b54
jne 0x4849db
push edi
push 0x1389
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x1394]
mov eax, edi
call fcn.00409714
mov eax, dword [ebp - 0x1394]
mov edx, 0x484a80
call fcn.00404b54
jne 0x4849db
push 0xa
push 0
push 0x201
push ebx
call sub.user32.dll_SendMessageA
push 0xa
push 0
push 0x202
push ebx
call sub.user32.dll_SendMessageA
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x484967
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484a15
lea eax, [ebp - 0x1394]
call fcn.00404748
lea eax, [ebp - 4]
call fcn.00404748
ret
Function at 0x484b10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffc68
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1394], edx
mov dword [ebp - 0x1398], edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x484c82
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00484a88
mov eax, 0x484c98
call fcn.004843dc
call fcn.00484544
push 0
push 0x484ca4
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x484cb4
push 0
push eax
call sub.user32.dll_FindWindowExA
push 0
push 0x484cc0
push 0
push eax
call sub.user32.dll_FindWindowExA
push 5
push eax
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
je 0x484c5c
push 0x1389
lea eax, [ebp - 0x138d]
push eax
push ebx
call sub.user32.dll_GetClassNameA
test eax, eax
jle 0x484c4a
lea edx, [ebp - 4]
lea eax, [ebp - 0x138d]
call fcn.00409714
mov eax, dword [ebp - 4]
mov edx, 0x484cd0
call fcn.00404b54
jne 0x484c4a
push 0
push 0x484cd8
push 0
push ebx
call sub.user32.dll_FindWindowExA
mov ebx, eax
lea eax, [ebp - 0x138d]
push eax
push 0x1389
push 0xd
push ebx
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x1398]
lea eax, [ebp - 0x138d]
call fcn.00409714
mov ecx, dword [ebp - 0x1398]
lea eax, [ebp - 0x1394]
mov edx, 0x484ce8
call fcn.00404a54
mov edx, dword [ebp - 0x1394]
mov eax, dword [esi + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
push 0xa
push 0
push 0x201
push ebx
call sub.user32.dll_SendMessageA
push 0xa
push 0
push 0x202
push ebx
call sub.user32.dll_SendMessageA
jmp 0x484c5c
push 2
push ebx
call sub.user32.dll_GetWindow
mov ebx, eax
test ebx, ebx
jne 0x484b96
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484c89
lea eax, [ebp - 0x1398]
mov edx, 2
call fcn.0040476c
lea eax, [ebp - 4]
call fcn.00404748
ret

Function at 0x489714
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x4897ba
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.user32.dll_GetForegroundWindow
mov ebx, eax
xor eax, eax
push ebp
push 0x48979b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x80
call fcn.00402804
mov dword [ebp - 4], eax
push 0x80
mov eax, dword [ebp - 4]
push eax
push ebx
call sub.user32.dll_GetWindowTextA
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404940
mov eax, dword [ebp - 8]
mov edx, 0x4897d0
call fcn.00404b54
jne 0x489785
push 0
push 0
push 0x10
push ebx
call sub.user32.dll_PostMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4897a2
mov eax, dword [ebp - 4]
call fcn.00402824
ret
Function at 0x49a164
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bf8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x49a2de
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00471ebc
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.00471edc
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x49a2aa
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004049b8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004093f8
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408878
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408878
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404b54
je 0x49a284
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004049b8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408878
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408878
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404b54
jne 0x49a29b
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.00471efc
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x49a1e5
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a2e5
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040476c
lea eax, [ebp - 4]
call fcn.00404748
ret
Function at 0x4a34f0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a3607
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4a3614
push 0
call sub.user32.dll_FindWindowA
test eax, eax
jne 0x4a353f
mov eax, dword [ebx + 0x32c]
mov eax, dword [eax + 0x220]
mov edx, 0x4a3628
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
mov dword [0x4b8080], eax
jmp 0x4a35ec
lea edx, [ebp - 4]
push edx
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov esi, eax
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00408e30
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 0x4a363c
call fcn.00404a54
mov edx, dword [ebp - 0xc]
mov eax, dword [ebx + 0x32c]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
push eax
push 0x20
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov cl, 1
mov edx, 0x4a3654
mov eax, dword [ebp - 8]
call fcn.004a3244
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov dword [0x4b8080], eax
mov eax, dword [0x4b8080]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x18]
call fcn.00408f1c
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x4a3670
call fcn.00404a54
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x32c]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a360e
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0040476c
ret

Function at 0x4a5ea0
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4a5ec8
mov eax, dword [esp]
and eax, 1
cmp eax, 1
jne 0x4a5ec6
mov al, 1
jmp 0x4a5ec8
xor eax, eax
pop edx
ret
Function at 0x4a5ecc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bf8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4a6046
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.00471ebc
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.00471edc
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4a6012
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004049b8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004093f8
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408878
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408878
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404b54
je 0x4a5fec
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004049b8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408878
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408878
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404b54
jne 0x4a6003
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.00471efc
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4a5f4d
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a604d
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040476c
lea eax, [ebp - 4]
call fcn.00404748
ret

Function at 0x4a6058
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409714
add esp, 0x18
pop ebx
ret
Function at 0x4a6080
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404bf8
mov eax, dword [ebp - 8]
call fcn.00404bf8
xor eax, eax
push ebp
push 0x4a6145
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
lea eax, [ebp - 0x1c]
push eax
push 0x4a6158
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x4a60f7
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp byte [ebp + 8], 1
cmc
sbb eax, eax
push eax
cmp byte [ebp + 0xc], 1
cmc
sbb eax, eax
push eax
movzx eax, bx
push eax
mov eax, dword [ebp - 8]
call fcn.00404c08
push eax
mov eax, dword [ebp - 4]
call fcn.00404c08
push eax
call sub.advapi32.dll_InitiateSystemShutdownA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a614c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040476c
ret
Function at 0x4ab1a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404bf8
xor eax, eax
push ebp
push 0x4ab33b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x4ab350
call fcn.00404b54
je 0x4ab1e5
mov eax, dword [ebp - 4]
mov edx, 0x4ab35c
call fcn.00404b54
jne 0x4ab1f2
lea eax, [ebp - 8]
mov edx, 0x4ab36c
call fcn.004047e0
mov eax, dword [ebp - 4]
mov edx, 0x4ab3ec
call fcn.00404b54
je 0x4ab210
mov eax, dword [ebp - 4]
mov edx, 0x4ab3f8
call fcn.00404b54
jne 0x4ab21d
lea eax, [ebp - 8]
mov edx, 0x4ab408
call fcn.004047e0
mov eax, dword [ebp - 4]
mov edx, 0x4ab488
call fcn.00404b54
je 0x4ab23b
mov eax, dword [ebp - 4]
mov edx, 0x4ab494
call fcn.00404b54
jne 0x4ab248
lea eax, [ebp - 8]
mov edx, 0x4ab4a4
call fcn.004047e0
mov eax, dword [ebp - 4]
mov edx, 0x4ab524
call fcn.00404b54
je 0x4ab266
mov eax, dword [ebp - 4]
mov edx, 0x4ab530
call fcn.00404b54
jne 0x4ab273
lea eax, [ebp - 8]
mov edx, 0x4ab540
call fcn.004047e0
lea eax, [ebp - 0xc]
push eax
push 0x20006
push 0
push 0x4ab5b8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4ab30e
xor eax, eax
push ebp
push 0x4ab307
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404a08
add eax, 2
push eax
lea eax, [ebp - 0x10]
mov ecx, 0x4ab5e4
mov edx, dword [ebp - 8]
call fcn.00404a54
mov eax, dword [ebp - 0x10]
call fcn.00404c08
push eax
push 7
push 0
push 0x4ab5e8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x4ab2f0
mov ecx, 0x4ab610
mov dl, 1
mov eax, dword [0x407c00]
call fcn.0040c6a0
call fcn.00404168
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab318
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, 0x4ab638
call fcn.00430b48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab342
lea eax, [ebp - 0x10]
call fcn.00404748
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040476c
ret

Function at 0x4abe14
Capabilities:
Hide graphical window

Disassembly:
push ebx
push eax
push 0
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x4abe43
push 0xa
push ebx
call sub.user32.dll_ShowWindow
push 1
push 0x258
push 0x320
push 0
push 0
push 0xffffffffffffffff
push ebx
call sub.user32.dll_SetWindowPos
mov al, 1
pop ebx
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1009b810
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1009b9ac
pushal
mov esi, section.UPX1
lea edi, [esi - 0x63000]
push edi
or ebp, 0xffffffff
jmp 0x1009b83a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1009b841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1009b830
mov eax, 1
add ebx, ebx
jne 0x1009b853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1009b864
jne 0x1009b874
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1009b874
dec eax
add ebx, ebx
jne 0x1009b870
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1009b848
xor ecx, ecx
sub eax, 3
jb 0x1009b88c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1009b8fe
sar eax, 1
mov ebp, eax
jmp 0x1009b897
add ebx, ebx
jne 0x1009b897
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1009b8a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1009b8c8
inc ecx
add ebx, ebx
jne 0x1009b8b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1009b8a9
jne 0x1009b8c5
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1009b8a9
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1009b8e8
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1009b8d9
jmp 0x1009b836
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1009b8e8
add edi, ecx
jmp 0x1009b836
pop esi
mov edi, esi
mov ecx, 0x1923
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1009b906
cmp byte [edi], 0xd
jne 0x1009b906
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 eax, ebx
loop 0x1009b90b
lea edi, [esi + 0x97000]
mov eax, dword [edi]
or eax, eax
je 0x1009b97a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x9ccbc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x9cd98]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1009b938
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x9cd9c]
or eax, eax
je 0x1009b974
mov dword [ebx], eax
add ebx, 4
jmp 0x1009b955
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1009b9ab
cmp al, 0xef
ja 0x1009b99e
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1009b980
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1009b98d
popal
jmp 0x1000b0b0
Function at 0x4024b2
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov esi, dword [edi]
mov dword [ebp + 8], esi
add esi, 2
lea eax, [esi*4 + 4]
push eax
call fcn.004020bf
pop ecx
mov dword [edi], esi
mov esi, 0x408010
push 4
mov dword [ebx], eax
mov edx, esi
pop ebx
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x4024fb
cmp byte [ecx + 1], 0x4a
jne 0x4024fb
add ecx, 2
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x4024e7
xor edi, edi
cmp dword [ebp + 8], edi
jle 0x402530
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x402528
cmp byte [ecx + 1], 0x4a
jne 0x402528
add ecx, 2
cmp byte [ecx], 0
je 0x402575
mov dword [eax], ecx
add eax, ebx
inc edi
add edx, ebx
cmp edi, dword [ebp + 8]
jl 0x40250f
mov edx, esi
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x40253f
cmp byte [ecx + 1], 0x4a
je 0x402543
mov dword [eax], ecx
add eax, ebx
add edx, ebx
cmp edx, 0x408018
jl 0x402532
mov esi, dword [ebp + 8]
test esi, esi
jle 0x40256d
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx]
cmp byte [ecx], 0x2d
jne 0x402564
cmp byte [ecx + 1], 0x4a
je 0x402568
mov dword [eax], ecx
add eax, ebx
add edx, ebx
dec esi
jne 0x402557
and dword [eax], 0
pop edi
pop esi
pop ebx
pop ebp
ret
push 1
push str.Error:_the__J_option_should_not_be_followed_by_a_space.
call fcn.00403598
pop ecx
pop ecx
push 1
call dword [sym.imp.MSVCRT.dll_exit]
Function at 0x40258b
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push str.CLASSPATH
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x4025e3
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.004020bf
mov edi, eax
push ebx
push str._Denv.class.path_s
push edi
call esi
push 0
push edi
call fcn.004017cf
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004032f1
pop ecx
test al, al
pop ecx
jne 0x40260d
push 1
push str.Cant_determine_application_home
call fcn.00403598
pop ecx
xor al, al
pop ecx
jmp 0x402731
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.004020bf
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.004017cf
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x408018
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, str._J_ms8m
lea edx, [edx + ecx + 1]
jl 0x402657
inc edx
push edx
call fcn.004020bf
mov edx, eax
mov esi, str._Djava.class.path
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x408020
rep movsb byte es:[edi], byte [esi]
jl 0x402691
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.004017cf
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4029d2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.004032b3
lea eax, [ebp - 0x184]
push 0x409398
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x402a2b
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x402a7b
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x402a6f
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x402a45
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret