joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406b28
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
add ecx, eax
push ebx
push edi
mov edi, dword [ecx]
add eax, 4
mov dword [esi], eax
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d3f6
mov ecx, dword [esi]
add ecx, dword [ebp + 8]
lea ebx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0044f750
mov eax, dword [ebp - 4]
add dword [esi], ebx
xor ecx, ecx
add esp, 0x10
cmp edi, ecx
mov word [ebx + eax], cx
jle 0x406b81
xor word [eax + ecx*2], di
inc ecx
cmp ecx, edi
jl 0x406b78
pop edi
pop ebx
leave
ret 4

Function at 0x411277
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x488090], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4876c0
jne 0x411297
push 0
call 0x451931
pop ecx
call fcn.00411238
mov dword [0x475c94], 0x270
mov dword [0x4876bc], esi
mov edx, 0xe3
mov ecx, 0x7ffffffe
mov eax, 0x9908b0df
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi + 0x634]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4112b6
mov edx, 0x18c
mov ebx, dword [esi]
lea edi, [esi + 4]
mov ebp, dword [edi]
xor ebx, ebp
and ebx, ecx
xor ebx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, ebp
and cl, 1
shr ebx, 1
neg cl
sbb ecx, ecx
and ecx, eax
xor ebx, ecx
xor ebx, dword [esi - 0x38c]
dec edx
mov ecx, dword [esp + 0x10]
mov dword [esi], ebx
mov esi, edi
jne 0x4112ec
mov edx, dword [0x4876c0]
mov edi, dword [esi]
xor edi, edx
and edi, ecx
xor edi, dword [esi]
and dl, 1
shr edi, 1
neg dl
sbb edx, edx
and edx, eax
xor edi, edx
xor edi, dword [esi - 0x38c]
mov dword [esi], edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x411346
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x475c94]
jne 0x411353
call fcn.00411277
mov eax, dword [0x4876bc]
mov ecx, dword [eax]
add dword [0x4876bc], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
shr eax, 1
ret

Function at 0x41138a
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ecx
dec dword [0x475c94]
jne 0x411398
call fcn.00411277
mov eax, dword [0x4876bc]
mov eax, dword [eax]
add dword [0x4876bc], 4
mov ecx, eax
shr ecx, 0xb
xor eax, ecx
mov ecx, eax
and ecx, 0xff3a58ad
shl ecx, 7
xor eax, ecx
mov ecx, eax
and ecx, 0xffffdf8c
shl ecx, 0xf
xor eax, ecx
mov ecx, eax
shr ecx, 0x12
xor ecx, eax
test ecx, ecx
mov dword [esp], ecx
fild dword [esp]
jge 0x4113de
fadd qword [0x470318]
fmul qword [0x470310]
pop ecx
ret
Function at 0x419f8b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
cmp byte [ebp + 0xc], 0
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x28c]
push edi
lea edi, [esi + 0x66c]
mov ebx, dword [edi]
mov dword [esp + 0x10], esi
mov dword [esp + 0x4c], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], ebx
je 0x419fc2
call fcn.0040dadf
cmp byte [ebp + 0x10], 0
je 0x41a12d
lea eax, [esi + 0x6b0]
push eax
lea ebx, [esp + 0x7c]
mov dword [esp + 0x18], eax
call fcn.0040f2de
lea edi, [esi + 0x6c0]
lea esi, [esp + 0x5c]
mov dword [esp + 0x18], edi
call fcn.0040dd1f
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x770]
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x6cc]
mov dword [esp + 0x24], eax
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x778]
lea edi, [ebx + 0x7c4]
lea esi, [esp + 0x50]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edi
call fcn.0040dd1f
mov eax, dword [ebx + 0x7d0]
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x7d4]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x354]
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x358]
add ebx, 0x340
push ebx
mov dword [esp + 0x44], ebx
lea ebx, [esp + 0x6c]
mov dword [esp + 0x40], eax
call fcn.0040f2de
mov edi, dword [esp + 0x10]
push dword [ebp + 8]
mov eax, edi
call fcn.00418d10
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x78]
push eax
call fcn.0040f9ea
mov eax, dword [esp + 0x18]
lea ebx, [esp + 0x5c]
call fcn.0040dde3
mov eax, dword [esp + 0x1c]
push dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov dword [edi + 0x770], eax
call fcn.00402a47
mov eax, dword [esp + 0x28]
mov dword [edi + 0x778], eax
mov eax, dword [esp + 0x2c]
lea ebx, [esp + 0x50]
call fcn.0040dde3
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x40]
mov dword [edi + 0x7d0], eax
mov eax, dword [esp + 0x34]
mov dword [edi + 0x7d4], eax
mov eax, dword [esp + 0x38]
mov dword [edi + 0x354], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x358], eax
lea eax, [esp + 0x68]
push eax
call fcn.0040f9ea
lea ecx, [esp + 0x68]
call fcn.0040f530
push dword [esp + 0x50]
call fcn.0044d460
push dword [esp + 0x60]
call fcn.0044d460
pop ecx
pop ecx
lea ecx, [esp + 0x78]
call fcn.0040f530
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov esi, dword [esp + 0x10]
jmp 0x41a137
push dword [ebp + 8]
mov eax, esi
call fcn.00418d10
cmp byte [ebp + 0xc], 0
je 0x41a149
call 0xde98db39
jmp 0x41a149
call fcn.0041a1bb
cmp ebx, dword [edi]
jl 0x41a144
mov eax, dword [esp + 0x4c]
pop edi
mov dword [esi + 0x28c], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401154
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
add byte [esi + 0x4228d0], 0x21
call edi
add byte [esi + 0x4228d0], 0xa6
call edi
xor byte [esi + 0x4228d0], 0x32
call edi
add byte [esi + 0x4228d0], 5
call edi
add byte [esi + 0x4228d0], 0x73
call edi
add byte [esi + 0x4228d0], 0xf0
call edi
add byte [esi + 0x4228d0], 0xd5
call edi
xor byte [esi + 0x4228d0], 0x9a
call edi
add byte [esi + 0x4228d0], 0xc
call edi
add byte [esi + 0x4228d0], 0xf3
call edi
xor byte [esi + 0x4228d0], 0x8a
call edi
add byte [esi + 0x4228d0], 0x7c
call edi
add byte [esi + 0x4228d0], 0x52
call edi
add byte [esi + 0x4228d0], 0x59
call edi
add byte [esi + 0x4228d0], 0xe9
call edi
add byte [esi + 0x4228d0], 0xae
call edi
xor byte [esi + 0x4228d0], 0xb7
call edi
add byte [esi + 0x4228d0], 0x9c
call edi
add byte [esi + 0x4228d0], 0x99
call edi
add byte [esi + 0x4228d0], 0x32
call edi
add byte [esi + 0x4228d0], 0x50
call edi
add byte [esi + 0x4228d0], 0x8d
call edi
add byte [esi + 0x4228d0], 0x72
call edi
add byte [esi + 0x4228d0], 0xe9
call edi
add byte [esi + 0x4228d0], 0xdf
call edi
xor byte [esi + 0x4228d0], 0xe7
call edi
add byte [esi + 0x4228d0], 7
call edi
add byte [esi + 0x4228d0], 0x57
call edi
add byte [esi + 0x4228d0], 0x38
call edi
add byte [esi + 0x4228d0], 0x68
call edi
add byte [esi + 0x4228d0], 0xe
call edi
xor byte [esi + 0x4228d0], 0x3f
call edi
xor byte [esi + 0x4228d0], 0x96
call edi
xor byte [esi + 0x4228d0], 0xc9
call edi
add byte [esi + 0x4228d0], 0x9a
call edi
add byte [esi + 0x4228d0], 0x8c
call edi
xor byte [esi + 0x4228d0], 0xec
call edi
add byte [esi + 0x4228d0], 0x66
call edi
add byte [esi + 0x4228d0], 0xe0
call edi
xor byte [esi + 0x4228d0], 0x96
call edi
add byte [esi + 0x4228d0], 0x3e
call edi
xor byte [esi + 0x4228d0], 0xb
call edi
add byte [esi + 0x4228d0], 0x5a
call edi
xor byte [esi + 0x4228d0], 0xa2
call edi
add byte [esi + 0x4228d0], 0x86
call edi
xor byte [esi + 0x4228d0], 0xf6
call edi
add byte [esi + 0x4228d0], 0xb5
call edi
add byte [esi + 0x4228d0], 0xc3
call edi
add byte [esi + 0x4228d0], 0x4a
inc esi
cmp esi, 0x23000
jb 0x40115e
pop edi
pop esi
ret
Function at 0x408950
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x44b058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x45dbcc]
push ebx
push esi
mov esi, dword [0x45dbd4]
mov eax, 0x4a4dc96f
imul esi
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push edi
mov edi, eax
mov eax, 0x4a4dc96f
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ebx, eax
mov eax, dword [0x45dbe8]
mov edx, ecx
imul eax, eax, 0x338
imul edx, edx, 0x365
sub ebx, edi
add ebx, edx
add ebx, eax
mov eax, 0xa33a575b
imul esi
add edx, esi
sar edx, 9
mov esi, edx
add ebx, edx
mov eax, 0xc152500d
imul ecx
mov eax, dword [0x573f4c]
add edx, ecx
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45dbdc]
imul edx, edx, 0x221
shr esi, 0x1f
add esi, ebx
sub esi, ecx
add esi, edx
mov ecx, 0x573f4c
mov dword [str._r_____r____], esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
mov edx, dword [0x45dbdc]
mov ecx, dword [0x45dbd8]
mov esi, dword [0x45dbd0]
mov eax, 0x4a4dc96f
imul edx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbe8]
imul edx, edx, 0x338
mov edi, ecx
imul edi, edi, 0x372
sub edi, eax
add edi, edx
mov eax, 0xad602b59
imul esi
add edx, esi
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x45dbc8]
imul edx, edx, 0x221
sub edi, eax
mov eax, 0xe070381d
add edi, edx
imul ecx
mov dword [esp + 0x18], 0
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edi, edx
mov edx, dword [esp + 0x20]
add eax, edi
mov edi, dword [0x45dbe4]
lea ecx, [esp + 0x24]
sub eax, edi
push ecx
sub eax, 0x92
push edx
lea ecx, [esp + 0x14]
mov dword [0x45dbd0], eax
call fcn.004086c0
mov ecx, dword [0x45dbcc]
mov eax, dword [0x45dbd0]
mov esi, dword [0x45dbe4]
lea edi, [eax + ecx]
mov eax, 0x4a4dc96f
imul edi, edi, 0x2a6
imul esi
sar edx, 8
mov ebx, edx
add edi, edx
mov eax, 0xa33a575b
imul esi
add edx, esi
sar edx, 9
mov esi, edx
shr ebx, 0x1f
add ebx, edi
add ebx, edx
mov eax, 0xf07fc3e1
imul ecx
mov eax, dword [0x45dbdc]
add edx, ecx
imul eax, eax, 0x92
sar edx, 9
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45dbe0]
imul edx, edx, 0x175
shr esi, 0x1f
add esi, ebx
sub esi, ecx
add esi, edx
add esi, eax
mov dword [0x45dbdc], esi
mov esi, dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebx
jg 0x408b4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41b840
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45f540]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41b942
lea ecx, [esp + 0xc]
call fcn.0041b720
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
jne 0x41b946
lea edx, [esp + 0x1c]
push edx
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x38]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x41b91e
jmp 0x41b8e0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0041b840
mov edi, eax
test edi, edi
jne 0x41b96d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x41b8e0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b935
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b951
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004303dd
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41b97c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x41b953
Function at 0x41be60
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x41be72
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x4274ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x42751d
call fcn.00448513
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x42751d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x427513
xor eax, eax
jmp 0x427636
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x42754d
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x42754d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x427633
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x42757a
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00427c5d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x427633
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4275c3
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4275c3
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4275bd
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00427c5d
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x427623
and dword [ebp + 0xc], 0
jmp 0x427623
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x427623
push 0xc
call fcn.00442119
mov esi, eax
test esi, esi
pop ecx
je 0x427605
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x427607
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x42761e
push dword [ebp - 8]
call fcn.0043db64
jmp 0x427623
call fcn.0043db3b
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x427588
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x43094d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x43096d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432bbc
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430990
test byte [esp + 8], 2
je 0x430990
call fcn.00432baa
mov dword [eax], 0xd
call fcn.00432bb3
mov dword [eax], 5
jmp 0x430969
xor eax, eax
ret
Function at 0x430a57
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4516d8
call fcn.00432a2c
push 8
call fcn.00434c46
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x573a3c], esi
jne 0x430a8b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x573a38], esi
mov al, byte [ebp + 0x10]
mov byte [0x573a34], al
cmp dword [ebp + 0xc], edi
jne 0x430ad5
cmp dword [0x57532c], edi
je 0x430ac5
mov eax, dword [0x575328]
sub eax, 4
mov dword [0x575328], eax
cmp eax, dword [0x57532c]
jb 0x430ac5
mov eax, dword [eax]
cmp eax, edi
je 0x430aa6
call eax
jmp 0x430aa6
push 0x45a0cc
mov eax, 0x45a0c4
call fcn.004309d5
pop ecx
push 0x45a0d8
mov eax, 0x45a0d0
call fcn.004309d5
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x430b06
cmp dword [ebp + 0x10], edi
jne 0x430b14
mov dword [0x573a3c], esi
push dword [ebp + 8]
call fcn.00430993
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x430b13
push 8
call fcn.00434b91
pop ecx
ret
call fcn.00432a67
ret

Function at 0x430d87
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00430c20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430e22
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x5739fc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x430e22
cmp eax, 1
je 0x430e43
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x430e22
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x430def
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x430e1e
xor eax, eax
inc eax
jmp 0x430e62
cmp edi, eax
jae 0x430e26
xor eax, eax
jmp 0x430e62
cmp eax, esi
jae 0x430e2d
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5739fc]
jmp 0x430e46
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4317d2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x451790
call fcn.00432a2c
mov edi, 0x94
mov eax, edi
call fcn.00430c20
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x5739fc], ecx
mov eax, dword [esi + 4]
mov dword [0x573a08], eax
mov edx, dword [esi + 8]
mov dword [0x573a0c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x573a00], esi
cmp ecx, 2
je 0x431832
or esi, 0x8000
mov dword [0x573a00], esi
shl eax, 8
add eax, edx
mov dword [0x573a04], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43186d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43186d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x431885
cmp eax, 0x20b
je 0x431872
mov dword [ebp - 0x1c], esi
jmp 0x431899
cmp dword [ecx + 0x84], 0xe
jbe 0x43186d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x431893
cmp dword [ecx + 0x74], 0xe
jbe 0x43186d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00434d82
pop ecx
test eax, eax
jne 0x4318ad
push 0x1c
call fcn.004317ae
pop ecx
call fcn.00433bf9
test eax, eax
jne 0x4318be
push 0x10
call fcn.004317ae
pop ecx
call fcn.00434c77
mov dword [ebp - 4], esi
call fcn.00437920
test eax, eax
jge 0x4318d7
push 0x1b
call fcn.00431789
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x575320], eax
call fcn.004377fe
mov dword [0x573a48], eax
call fcn.0043775c
test eax, eax
jge 0x4318fd
push 8
call fcn.00431789
pop ecx
call fcn.00437529
test eax, eax
jge 0x43190e
push 9
call fcn.00431789
pop ecx
push 1
call fcn.004309ed
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x431924
push eax
call fcn.00431789
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004374cc
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x431945
movzx eax, word [ebp - 0x40]
jmp 0x431948
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0043d204
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x431966
push edi
call fcn.00430b1a
call fcn.00430b3c
jmp 0x431998
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00432a67
ret
Function at 0x435911
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43593f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x435946
cmp ebx, dword [eax + 4]
jae 0x435946
xor eax, eax
jmp 0x435b36
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x435957
xor eax, eax
inc eax
jmp 0x435b35
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43596d
cmp ecx, edx
jae 0x435ab2
cmp dword [eax + 4], 0
je 0x435976
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43595e
cmp dword [ebp + 8], 0
je 0x435998
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x435ab2
cmp eax, esi
jae 0x435ab2
mov eax, dword [0x573bd8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4359bd
cmp dword [esi*4 + 0x573be0], edi
je 0x435ab6
inc esi
cmp esi, eax
jl 0x4359ab
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x435b32
cmp dword [ebp - 8], 0x1000000
jne 0x435b32
test byte [ebp - 0xc], 0xcc
je 0x435a3b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x435b32
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x435b32
cmp word [eax + 0x18], 0x10b
jne 0x435b32
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x435b32
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x435a3b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x435a3b
test byte [ecx + 0x27], 0x80
jne 0x435ab2
push 1
push 0x573c20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43594f
mov ecx, dword [0x573bd8]
test ecx, ecx
mov edx, ecx
jle 0x435a6f
lea eax, [ecx*4 + 0x573bdc]
cmp dword [eax], edi
je 0x435a6f
dec edx
sub eax, 4
test edx, edx
jg 0x435a63
test edx, edx
jne 0x435aa0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x435a7c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x435a94
lea eax, [edx*4 + 0x573be0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x435a82
cmp ecx, 0x10
jge 0x435aa0
inc ecx
mov dword [0x573bd8], ecx
push 0
push 0x573c20
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43594f
xor eax, eax
jmp 0x435b35
test esi, esi
jle 0x43594f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x573c20
call ebx
test eax, eax
jne 0x43594f
cmp dword [esi*4 + 0x573be0], edi
je 0x435b0c
mov eax, dword [0x573bd8]
lea esi, [eax - 1]
test esi, esi
jl 0x435afa
cmp dword [esi*4 + 0x573be0], edi
je 0x435af6
dec esi
jns 0x435aea
test esi, esi
jge 0x435b0a
cmp eax, 0x10
jge 0x435b05
inc eax
mov dword [0x573bd8], eax
lea esi, [eax - 1]
jmp 0x435b0c
je 0x435b24
xor ecx, ecx
test esi, esi
jl 0x435b24
lea eax, [ecx*4 + 0x573be0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x435b12
push 0
push 0x573c20
call ebx
jmp 0x43594f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret