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

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x50d406a
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x50d420c
cmp edi, dword [ebp + 0x10]
jb 0x50d420c
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.050d3b34
inc edi
jmp 0x50d40f3
jmp 0x50d4100
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.050d3b34
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.050d3b34
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x50d4154
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x50d4138
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.050d4182
add dword [eax], 0x39
jle 0x50d415e
sub al, 0xf5
mov ch, al
call fcn.050d4197
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x50d5e6f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x50d5e85
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x50d5e96
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.050d5ed7
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx
Function at 0x50d8243
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x50d818c
add ebx, 0
push ecx
call 0x50d81a1
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x8a01c
sub ebx, dword [0xa985b]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0xa984b
call fcn.050d3c6b
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.050d3179
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x50d82ff
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x50d82ff
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x50d82b6
mov eax, 1
lock xchg dword [0xa9857], eax
push 0x3dd1fc71
call 0x50d8243
push esi
add esp, 8
cmp eax, 0
jne 0x50d822c
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x50d8252
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x50d8267
cmp ecx, edx
cmp eax, 0
je 0x50d828c
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x50d8276
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.050d82a5
dec eax
loope 0x50d82a8
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0xa9857], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x50d82dc
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x50d82f1
jmp 0x50d82fc
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x50d81ea

Function at 0x50df364
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x50df63a
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x964cf
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x8d495
push 0xffffffffffffffff
call fcn.050d6564
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x50df3ce
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.050df3e6
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x50df62e
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x50df602
Function at 0x50eee34
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x50eee56
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x50eee56
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x50eee56
ret
cmp word [ebx + 4], 0x14c
jne 0x50eee56
test word [ebx + 0x16], 2
je 0x50eee56
test word [ebx + 0x16], 0x100
je 0x50eee56
cmp word [ebx + 0x18], 0x10b
jne 0x50eee56
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x50eee56
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x50eeee2
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x50eee76
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.050d5dc1
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x50eee56
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x50eeee2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x50eee56
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x50eee56
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x50eee56
ret
cmp word [ebx + 4], 0x14c
jne 0x50eee56
test word [ebx + 0x16], 2
je 0x50eee56
test word [ebx + 0x16], 0x100
je 0x50eee56
cmp word [ebx + 0x18], 0x10b
jne 0x50eee56
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x50eee56
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x50eeee2
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x50eee76
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.050d5dc1
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x50eee56
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x50eef99
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x50eeff2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x50eef99
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x50eefa8
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x54f4c4b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x50eeff9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.050d5e6f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x50ef098
add edi, 4
add eax, 2
dec ecx
jne 0x50eefde
call 0x50ef045
loope 0x50ef03b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x50ef095
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x50ef0a6
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x50ef059
cmp eax, ecx
ja 0x50ef059
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x50ef0e3
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x50ef0d9
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.050d634e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x50eefa8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x50eeff2
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x50eef99
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x50eefa8
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x54f4c4b
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x50eeff9
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.050d5e6f
cmp eax, dword [ebp + 0xc]
pop eax
je 0x50ef098
add edi, 4
add eax, 2
dec ecx
jne 0x50eefde
call 0x50ef045
loope 0x50ef03b
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x50ef095
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x50ef0a6
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x50ef059
cmp eax, ecx
ja 0x50ef059
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x50ef0e3
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x50ef0d9
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.050d634e
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401700
Capabilities:
Get common file path

Disassembly:
sub esp, 0x84
mov ecx, dword [0x40b2b0]
push ebx
lea eax, [esp + 4]
push ebp
push eax
push ecx
mov dword [esp + 0x10], 0
call sub.WCDMI.dll_Ordinal_342
mov ebp, dword [esp + 0x98]
mov ebx, eax
add esp, 8
mov dword [ebx], ebp
mov al, byte [0x40b2ac]
test al, al
jne 0x401743
xor eax, eax
pop ebp
pop ebx
add esp, 0x84
ret
mov eax, dword [esp + 8]
test eax, eax
jne 0x40189a
mov eax, ebp
push edi
dec eax
push esi
je 0x401838
dec eax
jne 0x401896
lea edx, [esp + 0x34]
push 0x40
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40b34b
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xffffffffffffffff
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, edx
push 3
push eax
and ecx, 3
push 1
lea eax, [esp + 0x48]
push 0x80000000
rep movsb byte es:[edi], byte [esi]
push eax
mov dword [ebx + 8], 8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
mov esi, eax
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea ecx, [esp + 0x16]
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov eax, dword [esp + 0x18]
and eax, 0xffff
mov edx, eax
mov ecx, eax
shr edx, 5
and ecx, 0x1f
and edx, 0xf
shr eax, 9
push ecx
add eax, 0x7bc
push edx
push eax
lea eax, [esp + 0x80]
push str._d:_d:_d_n
push eax
call fcn.00402430
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x40b2b0]
lea ecx, [esp + 0x10]
push ecx
lea eax, [esp + 0x78]
push edx
push eax
jmp 0x40188b
lea ecx, [esp + 0x34]
push 0x40
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x40b34b
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], 8
mov ecx, dword [0x40b2b0]
lea edx, [esp + 0x38]
push ecx
push edx
call sub.WCDMI.dll_Ordinal_332
add esp, 0xc
mov dword [ebx + 0x10], eax
pop esi
mov dword [ebx], ebp
pop edi
mov eax, dword [esp + 0x94]
pop ebp
mov dword [eax], ebx
mov eax, dword [esp + 4]
pop ebx
add esp, 0x84
ret
Function at 0x4019b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24
mov eax, pe_nt_image_headers32
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push str.System
push 0x80000002
call edi
mov esi, eax
test esi, esi
jne 0x401b31
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ebp
push ecx
push 0x20019
push eax
push str.CurrentControlSet
push edx
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x401b29
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.Services
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x401b22
lea edx, [esp + 0x10]
push ebx
push edx
push 0x20019
push eax
mov eax, dword [esp + 0x24]
push str.EN1207D
push eax
call edi
mov esi, eax
test esi, esi
je 0x401a78
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push str.EN1207D
push edx
call edi
mov esi, eax
test esi, esi
jne 0x401b1a
mov edx, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push 0x40b340
push ecx
push 0
push str.ImagePath
push edx
mov dword [esp + 0x28], 2
call ebx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x14]
push 0x40b2c0
push ecx
push 0
push str.DisplayName
push edx
mov dword [esp + 0x28], 1
call ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push str.Linkage
push ecx
call edi
mov esi, eax
test esi, esi
jne 0x401b13
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x14]
push 0x40b3c0
push eax
push esi
push str.Bind
push ecx
mov dword [esp + 0x28], 7
call ebx
mov edx, dword [esp + 0x1c]
mov esi, eax
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call ebp
mov ecx, dword [esp + 0x18]
push ecx
call ebp
pop ebx
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov eax, dword [esp + 0x20]
push eax
call ebp
pop ebp
mov eax, esi
pop edi
pop esi
add esp, 0x24
ret

Function at 0x401b90
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x401bc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401bbf
mov edi, 1
mov eax, edi
pop edi
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
ret

Function at 0x402030
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push 0x401b40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x40afc4], eax
jne 0x402054
pop ecx
ret
mov eax, 1
mov dword [0x40afc0], eax
pop ecx
ret

Function at 0x402060
Capabilities:
Resume thread

Disassembly:
mov eax, dword [0x40afc4]
mov dword [0x40afbc], 0
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret
Function at 0x402080
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x40afc4]
mov dword [0x40afbc], 1
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
ret

Function at 0x4024e0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4041e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x40b004], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40b000], ecx
shl ecx, 8
add ecx, edx
mov dword [0x40affc], ecx
shr eax, 0x10
mov dword [0x40aff8], eax
call fcn.004040b0
test eax, eax
jne 0x40254a
push 0x1c
call fcn.00402600
add esp, 4
mov dword [ebp - 4], 0
call fcn.00403eb0
call fcn.00403ea0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40c544], eax
call fcn.00403a70
mov dword [0x40afd0], eax
test eax, eax
je 0x40257d
mov eax, dword [0x40c544]
test eax, eax
jne 0x402587
push 0xffffffffffffffff
call fcn.00403430
add esp, 4
call fcn.004037c0
call fcn.004036d0
call fcn.00403400
mov eax, dword [0x40b014]
mov dword [0x40b018], eax
push eax
mov eax, dword [0x40b00c]
push eax
mov ecx, dword [0x40b008]
push ecx
call fcn.00402380
add esp, 0xc
mov dword [ebp - 0x1c], eax
push eax
call fcn.00403430
jmp 0x4025e2
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403470
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40b034]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40348f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40b030], 1
mov byte [0x40b02c], bl
jne 0x4034e9
mov ecx, dword [0x40b528]
test ecx, ecx
je 0x4034d7
mov esi, dword [0x40b524]
sub esi, 4
cmp esi, ecx
jb 0x4034d7
mov eax, dword [esi]
test eax, eax
je 0x4034d0
call eax
mov ecx, dword [0x40b528]
sub esi, 4
cmp esi, ecx
jae 0x4034c2
push 0x40701c
push 0x407014
call fcn.00403520
add esp, 8
push 0x407024
push 0x407020
call fcn.00403520
add esp, 8
test ebx, ebx
jne 0x403510
push ebp
mov dword [0x40b034], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret
Function at 0x403a70
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x40b148]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x403ab2
call edi
mov esi, eax
test esi, esi
je 0x403a9c
mov eax, 1
jmp 0x403aad
call ebp
mov ebx, eax
test ebx, ebx
je 0x403bbf
mov eax, 2
mov dword [0x40b148], eax
cmp eax, 1
jne 0x403b52
test esi, esi
jne 0x403acb
call edi
mov esi, eax
test esi, esi
je 0x403bbf
cmp word [esi], 0
mov eax, esi
je 0x403ae5
add eax, 2
cmp word [eax], 0
jne 0x403ad3
add eax, 2
cmp word [eax], 0
jne 0x403ad3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x403b44
push edi
call fcn.004049c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403b44
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x403b36
push ebx
call fcn.00404cd0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x403bbf
test ebx, ebx
jne 0x403b63
call ebp
mov ebx, eax
test ebx, ebx
je 0x403bbf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x403b7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403b6b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x403b6b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.004049c0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x403b9d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret