joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002380
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100054b4
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.CreateProcessW
push str.kernelbase.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10008668], eax
call fcn.10003932
push 0x10008668
mov edx, 0x10002240
mov ecx, dword [0x10008668]
call fcn.10003966
xor ecx, ecx
call fcn.10003b54
nop
push 0xc
call fcn.1000448f
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0
je 0x10002426
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
push 0
push str.SoftwareNeutrino
push 0x80000001
mov ecx, dword [ebp - 0x28]
call fcn.10001470
mov dword [ebp - 0x34], eax
jmp 0x1000242d
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x10002547
push str.StoredData
mov ecx, dword [ebp - 0x20]
call fcn.10001570
mov dword [ebp - 0x3c], eax
push str.SpinLock
mov ecx, dword [ebp - 0x20]
call fcn.10001570
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov al, byte [ecx + 4]
mov byte [ebp - 0x14], al
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x40
push 5
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dl, byte [ebp - 0x14]
mov byte [eax + 4], dl
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 5
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push str.Thread
mov ecx, dword [ebp - 0x20]
call fcn.10001570
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x10002506
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10002540
mov ecx, dword [ebp - 0x24]
call fcn.100014a0
mov ecx, 1
and ecx, 1
je 0x10002532
push 0xc
mov edx, dword [ebp - 0x24]
push edx
call fcn.100044c4
add esp, 8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
jmp 0x10002547
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10004481
mov esp, ebp
pop ebp
ret
Function at 0x100035a5
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
je 0x100036b0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100036a9
inc edi
cmp dword [ebp - 0x20], 0x10
jb 0x1000366d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000366d
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000366d
mov edx, dword [esi]
test edx, edx
jne 0x10003636
push 0x200
push edx
push dword [0x10008670]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10003692
lea ebx, [esi + 8]
jmp 0x10003660
mov eax, dword [esi + 4]
lea ebx, [esi + 8]
cmp dword [ebx], eax
jb 0x10003660
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x10008670]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100036c1
mov dword [esi], edx
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [ebx]
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100035ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100036a9
xor edi, edi
cmp dword [esi], edi
je 0x100036a9
push dword [esi]
push edi
push dword [0x10008670]
call dword [sym.imp.KERNEL32.dll_HeapFree]
and dword [esi], edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004481
leave
ret
mov ebx, dword [ebp - 0x24]
jmp 0x10003692

Function at 0x100036c6
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor esi, esi
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [edi + 8], esi
call fcn.100035a5
test eax, eax
jne 0x100036ea
push 9
pop esi
jmp 0x10003731
cmp dword [edi], esi
je 0x10003731
push ebx
mov ebx, esi
cmp dword [edi + 8], esi
jbe 0x10003730
mov eax, dword [edi]
push dword [eax + ebx*4]
push esi
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000372a
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10003450
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [edi + 8]
jb 0x100036f6
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x10003737
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x10003783
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10003772
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000376b
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10003748
pop ebx
push dword [esi]
push 0
push dword [0x10008670]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret

Function at 0x10003785
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10008680]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x100037ab
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100037d2
push 0xa
pop eax
jmp 0x10003852
test edi, edi
je 0x100037f3
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x10003812
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10003812
test byte [esi + 0x14], 1
je 0x10003807
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x10003812
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov cl, dl
add cl, cl
shl dl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor dl, cl
and dl, 4
xor dl, cl
xor eax, eax
mov byte [esi + 0x14], dl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10003e2e
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10008678]
push esi
xor esi, esi
jmp 0x10003e40
cmp dword [edx + 4], esi
jne 0x10003e8c
mov edx, dword [edx]
test edx, edx
jne 0x10003e39
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10003e99
push edi
push 0x20
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop edi
mov dword [ecx], esi
mov eax, ecx
mov dword [edx + 4], ecx
add edi, 0x20
add ecx, 0x20
mov esi, eax
cmp edi, 0xfe0
jbe 0x10003e67
mov eax, dword [0x10008678]
pop edi
mov dword [edx], eax
mov dword [0x10008678], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret
Function at 0x40e8ff
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40e93e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e93e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e93e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40e93e
cmp dword [ecx + 0x74], 0xe
jbe 0x40e93e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419d35
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42cdd8
push 0x42cdd0
push str.FlsAlloc
push 0x1f
call fcn.00419ba0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419d69
push dword [ebp + 8]
mov ecx, esi
call dword [0x429130]
call esi
jmp 0x419d6f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x419db3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42cde8
push 0x42cde0
push str.FlsGetValue
push 0x21
call fcn.00419ba0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419dea
push dword [ebp + 8]
mov ecx, esi
call dword [0x429130]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x419df2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42cdf0
push 0x42cde8
push str.FlsSetValue
push 0x22
call fcn.00419ba0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419e2c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x429130]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41e10c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41e1a9
push ebx
push esi
call fcn.0041e0d5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041cec3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e156
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e1a8
push edi
push eax
call fcn.0041a122
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e176
call fcn.0041a0e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e1a7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041cec3
add esp, 0x20
test eax, eax
jne 0x41e195
push edi
call fcn.0041a0e8
jmp 0x41e19d
push ebx
call fcn.0041a0e8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x420ca3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00419420
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420d12
cmp esi, dword [ebp - 4]
je 0x420d0d
cmp dword [ebp + 0xc], 0
je 0x420d0d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x420cea
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004207f5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x420d14
xor eax, eax
inc eax
jmp 0x420d14
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x420d79
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x435040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00419420
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00419420
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x420df0
cmp word [ecx], dx
je 0x420df0
mov eax, dword [0x42d4bc]
push edi
dec eax
push eax
push 0x42d3a8
call fcn.00420d18
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x420e63
cmp word [eax], dx
je 0x420e63
mov eax, dword [edi]
test eax, eax
je 0x420e14
cmp word [eax], dx
je 0x420e14
lea eax, [ebp - 0x10]
push eax
call fcn.004206fb
jmp 0x420e1d
lea eax, [ebp - 0x10]
push eax
call fcn.00420796
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x420e8d
mov eax, dword [0x42d3a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42d098
call fcn.00420d18
add esp, 0xc
test al, al
je 0x420e8d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x420e58
cmp word [eax], di
je 0x420e58
lea eax, [ebp - 0x10]
push eax
call fcn.004206fb
pop ecx
jmp 0x420e8f
lea eax, [ebp - 0x10]
push eax
call fcn.00420796
jmp 0x420e55
mov eax, dword [edi]
test eax, eax
je 0x420e7a
cmp word [eax], dx
je 0x420e7a
lea eax, [ebp - 0x10]
push eax
call fcn.004206b0
pop ecx
jmp 0x420e8d
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x420f58
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00420b9d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x420f58
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x420f58
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x420f58
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420ee5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00419f32
test ebx, ebx
je 0x420f53
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00419f32
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420f58
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420f58
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00424db8
add esp, 0x10
xor eax, eax
inc eax
jmp 0x420f5a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040dd90
leave
ret
Function at 0x426ea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426ecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426ecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401c30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x812c
mov ebp, esp
push edi
push esi
push ebx
call fcn.00406c70
lea edi, [ebp - 0x8018]
xor ebx, ebx
mov esi, 0x7fff
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_memset
mov dword [esp + 4], edi
mov ecx, 0x7fff
mov dword [esp + 8], ecx
mov dword [esp], str.Launch4j
call sub.KERNEL32.dll_GetEnvironmentVariableA
mov eax, dword [ebp + 8]
sub esp, 0xc
mov edx, str.__l4j_debug
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401d86
lea ebx, [ebp - 0x8128]
mov edx, 0x104
xor esi, esi
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov esi, 0x6f6c2e6a
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [esp], ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [eax + ebx], 0x75616c5c
mov edx, 0x3468636e
mov ecx, 0x409090
mov dword [eax + ebx + 4], edx
mov dword [eax + ebx + 8], esi
mov word [eax + ebx + 0xc], 0x67
mov dword [esp], ebx
mov dword [esp + 4], ecx
call sub.msvcrt.dll_fopen
mov dword [0x40a090], eax
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d7e
mov eax, dword [ebp + 8]
mov ecx, str.__l4j_debug_all
xor esi, esi
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.msvcrt.dll_strstr
test eax, eax
je 0x401da7
mov esi, 1
mov dword [0x40a028], esi
test ebx, ebx
je 0x401d79
mov dword [esp], ebx
mov esi, 0x4090b7
mov edi, str._n_nVersion:_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll_fprintf
mov eax, dword [0x40a090]
test eax, eax
je 0x401d79
mov dword [esp], eax
mov edx, dword [ebp + 8]
mov ebx, str.CmdLine:_t_s__s_n
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_fprintf
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
mov edx, str.debug
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401c95
mov ebx, dword [0x40a090]
jmp 0x401d33
mov dword [esp], edi
mov edx, str.debug_all
mov dword [esp + 4], edx
call sub.msvcrt.dll_strstr
test eax, eax
jne 0x401d28
jmp 0x401d2d
Function at 0x401ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
mov eax, dword [0x40a090]
test eax, eax
jne 0x402058
test ebx, ebx
jne 0x401fd0
mov ecx, dword [0x40a024]
test ecx, ecx
je 0x401fa0
cmp byte [0x412890], 0
jne 0x401f70
mov dword [esp], 0x412910
call sub.msvcrt.dll_puts
cmp byte [0x412d10], 0
je 0x401f62
mov eax, dword [0x40a090]
test eax, eax
jne 0x402077
mov dword [esp], 0
mov eax, 1
xor ecx, ecx
mov dword [esp + 0x14], eax
mov edx, 0x412d10
mov eax, str.open
mov dword [esp + 0x10], ecx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov eax, dword [0x40a090]
test eax, eax
jne 0x401f90
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], str._s:__s_n
mov edx, 0x412890
mov eax, 0x412910
mov dword [esp + 8], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_printf
jmp 0x401f16
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], 0
xor edx, edx
mov ecx, 0x412890
mov dword [esp + 0xc], edx
mov ebx, 0x412910
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
jmp 0x401f16
mov dword [esp + 8], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x18], eax
lea edx, [ebp - 8]
mov eax, 0x400
mov dword [esp + 0x10], edx
xor ebx, ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 4], ebx
mov dword [esp], 0x1300
call sub.KERNEL32.dll_FormatMessageA
mov edx, dword [0x40a090]
sub esp, 0x1c
test edx, edx
jne 0x402096
mov dword [esp], 0x412910
mov ebx, 0xa0a
call sub.msvcrt.dll_strlen
mov word [eax + 0x412910], bx
mov byte [eax + 0x412912], 0
mov eax, dword [ebp - 8]
mov dword [esp], 0x412910
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcat
mov edx, dword [ebp - 8]
mov dword [esp], edx
call sub.KERNEL32.dll_LocalFree
sub esp, 4
jmp 0x401ef3
mov dword [esp], eax
mov ecx, 0x412910
mov edx, str.Error_msg:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_fprintf
jmp 0x401eeb
mov dword [esp], eax
mov ecx, 0x412d10
mov ebx, str.Open_URL:_t_s_n
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
call sub.msvcrt.dll_fprintf
jmp 0x401f2c
mov ecx, dword [ebp - 8]
mov ebx, str.Error:_t_t_s_n
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [esp + 8], ecx
call sub.msvcrt.dll_fprintf
jmp 0x402013
Function at 0x4020c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov eax, 0x400
mov ebp, esp
push esi
mov edx, 0xa
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
movzx ecx, si
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40215b
mov dword [esp + 4], eax
mov edx, dword [0x412880]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402170
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402170
xor edx, edx
mov esi, esi
lea edi, [edi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402130
mov ecx, dword [0x40a028]
test ecx, ecx
je 0x40214f
mov eax, dword [0x40a090]
test eax, eax
jne 0x402179
mov eax, 1
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov dword [esp], 0
call sub.KERNEL32.dll_SetLastError
mov byte [ebx], 0
sub esp, 4
lea esi, [esi]
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
mov dword [esp + 0xc], ebx
mov ebx, str.Resource__d:_t_s_n
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 1
jmp 0x402154

Function at 0x4021a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
cld
mov ecx, 5
push esi
lea edi, [ebp - 0x38]
push ebx
sub esp, 0x4c
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 8]
mov ecx, 0x400
mov edi, 0xa
mov dword [esp + 0xc], ecx
lea ebx, [ebp - 0x38]
mov dword [esp + 4], edi
movzx edx, si
mov dword [esp + 8], edx
mov eax, dword [0x412880]
mov dword [esp], eax
call sub.KERNEL32.dll_FindResourceExA
sub esp, 0x10
test eax, eax
je 0x40227d
mov dword [esp + 4], eax
mov edx, dword [0x412880]
mov dword [esp], edx
call sub.KERNEL32.dll_LoadResource
sub esp, 8
test eax, eax
je 0x402260
mov dword [esp], eax
call sub.KERNEL32.dll_LockResource
sub esp, 4
test eax, eax
mov ecx, eax
je 0x402260
xor edx, edx
lea esi, [esi]
movzx eax, byte [edx + ecx]
mov byte [edx + ebx], al
inc edx
test al, al
jne 0x402220
mov ecx, dword [0x40a028]
test ecx, ecx
je 0x402260
mov eax, dword [0x40a090]
test eax, eax
je 0x402260
mov dword [esp + 8], esi
mov esi, str.Resource__d:_t_s_n
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
nop
lea esi, [esi]
cld
mov esi, ebx
mov edi, 0x40915c
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
sete bl
lea esp, [ebp - 0xc]
movzx eax, bl
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0
mov esi, ebx
mov edi, 0x40915c
call sub.KERNEL32.dll_SetLastError
mov byte [ebp - 0x38], 0
cld
mov ecx, 5
sub esp, 4
repe cmpsb byte [esi], byte es:[edi]
sete bl
lea esp, [ebp - 0xc]
movzx eax, bl
pop ebx
pop esi
pop edi
pop ebp
ret