joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adbbe
Capabilities:
Parse pe header

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

Function at 0x4aee52
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4aee73
jl 0x4aee6a
test edi, edi
jne 0x4aee73
xor eax, eax
xor edx, edx
jmp 0x4aef34
cmp dword [ebx + 0x38], 0
je 0x4aee88
push eax
push edi
push dword [ebp + 8]
call fcn.0048b5b0
jmp 0x4aef34
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4aeecf
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4aeecf
cmp eax, edi
jb 0x4aeea9
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.005649a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4aeed5
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4aef29
mov ecx, ebx
call fcn.004ae7cd
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4aef14
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0056edb7
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4aef29
jmp 0x4aeee7
test edx, edx
je 0x4aef29
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0056edb7
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x4bfaf0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0058e660
push edi
mov edi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4bfb70
mov cl, byte [edi]
test cl, cl
je 0x4bfb70
push ebx
push esi
mov ebx, 0x100
nop word [eax + eax]
movd xmm1, dword [esp + 0xc]
lea edi, [edi + 1]
movsx esi, cl
mov edx, 0x20
or esi, ebx
add ebx, 0x100
mov ecx, esi
shr ecx, 2
xor ecx, esi
imul esi, esi
and ecx, 0xf
sub edx, ecx
shl eax, cl
mov cl, byte [edi]
movd xmm0, edx
psrlq xmm1, xmm0
movd edx, xmm1
or eax, edx
xor eax, esi
mov dword [esp + 0xc], eax
test cl, cl
jne 0x4bfb20
mov ecx, eax
pop esi
shr ecx, 0x10
pop ebx
xor eax, ecx
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret

Function at 0x4bfc10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.0058e660
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
mov dword [esp + 8], esi
test ebx, ebx
je 0x4bfc93
mov al, byte [ebx]
test al, al
je 0x4bfc93
push ebp
push edi
mov ebp, 0x100
movsx eax, al
push eax
call fcn.004bd120
movd xmm1, dword [esp + 0x14]
lea ebx, [ebx + 1]
mov edi, eax
mov edx, 0x20
or edi, ebp
add esp, 4
mov ecx, edi
add ebp, 0x100
shr ecx, 2
xor ecx, edi
imul edi, edi
and ecx, 0xf
sub edx, ecx
shl esi, cl
movd xmm0, edx
psrlq xmm1, xmm0
movd eax, xmm1
or esi, eax
mov al, byte [ebx]
xor esi, edi
mov dword [esp + 0x10], esi
test al, al
jne 0x4bfc37
mov eax, esi
pop edi
shr eax, 0x10
pop ebp
xor eax, esi
pop esi
pop ebx
pop ecx
ret
pop esi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x517720
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x517734
mov dword [esp + 0x18], fcn.00515f00
jmp fcn.004b89a0
mov dword [esp + 0x18], fcn.00515190
jmp fcn.004b86a0
Function at 0x56d3e0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0058e660
mov eax, dword [0x61d00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0057ae52
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x56d422
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x56d57e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0058ea00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x625090]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0057df29
mov ecx, dword [esi*4 + 0x625090]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x56d577
cmp eax, dword [edi + ecx + 0x24]
jne 0x56d577
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56d577
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057df29
add esp, 0x14
test edx, edx
jl 0x56d577
jg 0x56d4ed
test eax, eax
jb 0x56d577
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x56d577
jl 0x56d507
cmp dword [ebp - 0x1008], eax
ja 0x56d577
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x56d525
test ebx, ebx
je 0x56d55e
cmp ecx, edi
jae 0x56d55e
mov al, byte [ecx]
cmp al, 0xd
jne 0x56d53f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x56d54b
cmp byte [ecx + 1], 0xa
jne 0x56d54b
inc ecx
jmp 0x56d54b
movzx eax, al
movsx eax, byte [eax + 0x61e098]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x56d525
cmp edx, ebx
jne 0x56d525
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x56d57c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004acfb6
leave
ret
Function at 0x57b5b5
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5e9abc
push esi
call fcn.00584eeb
pop ecx
pop ecx
test eax, eax
jne 0x57b5e3
xor al, al
jmp 0x57b660
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0057b2f8
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x57b61d
push dword [ebp - 0x210]
call fcn.0056cc9e
xor al, al
jmp 0x57b65e
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x57b623
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x57b643
push edx
call fcn.0057b4eb
pop ecx
test al, al
je 0x57b60e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x57b651
mov bl, 1
push dword [ebp - 0x210]
call fcn.0056cc9e
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004acfb6
leave
ret
Function at 0x57dfa5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x625090]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57dfe5
cmp byte [ebx], 0xa
jne 0x57dfe5
or byte [eax + edi + 0x28], 4
jmp 0x57dfea
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x57e0e8
mov al, byte [edx]
cmp al, 0x1a
je 0x57e0ca
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x57e019
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x57e03e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x57e048
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x57dffb
jmp 0x57e0e8
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57e0c5
cmp dword [ebp - 0xc], 0
je 0x57e0c5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x625090]
test byte [eax + edi + 0x28], 0x48
je 0x57e09f
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x57e08a
mov byte [esi], dl
jmp 0x57e09b
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x625090]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x57e0e8
cmp byte [ebp - 1], 0xa
jne 0x57e0ae
cmp esi, ebx
jne 0x57e0ae
mov byte [esi], 0xa
jmp 0x57e0e7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0057df47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x57e0e8
mov byte [esi], 0xd
jmp 0x57e0e7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x625090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57e0e4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57e0e8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57e0f1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x625090]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x57e134
cmp word [esi], dx
jne 0x57e134
or byte [edi + eax + 0x28], 4
jmp 0x57e139
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x57e28c
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x57e26c
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x57e17b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x57e1b1
cmp eax, edx
jae 0x57e1bd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x57e153
jmp 0x57e28c
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x57e268
cmp dword [ebp - 0x14], 0
je 0x57e268
mov eax, dword [ebx*4 + 0x625090]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x57e240
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x57e209
mov word [esi], cx
jmp 0x57e23c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x625090]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x625090]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x625090]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x57e28c
pop ebx
cmp word [ebp - 4], bx
jne 0x57e251
cmp esi, dword [ebp + 0xc]
jne 0x57e251
mov word [esi], bx
jmp 0x57e289
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0057df47
add esp, 0x10
cmp word [ebp - 4], bx
je 0x57e28c
push 0xd
jmp 0x57e285
mov ecx, dword [ebx*4 + 0x625090]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x57e283
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x57e28c
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x57efe6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ea638
push 0x5ea630
push str.FlsAlloc
push 0x1e
call fcn.0057ee53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57f01a
push dword [ebp + 8]
mov ecx, esi
call dword [0x59437c]
call esi
jmp 0x57f020
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x57f064
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ea648
push 0x5ea640
push str.FlsGetValue
push 0x20
call fcn.0057ee53
mov esi, eax
add esp, 0x10
test esi, esi
je 0x57f09b
push dword [ebp + 8]
mov ecx, esi
call dword [0x59437c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x580e7c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00580ced
Function at 0x583465
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 0x583502
push ebx
push esi
call fcn.0058342e
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.00583377
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5834af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x583501
push edi
push eax
call fcn.0057cba7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5834cf
call fcn.0057c160
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x583500
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00583377
add esp, 0x20
test eax, eax
jne 0x5834ee
push edi
call fcn.0057c160
jmp 0x5834f6
push ebx
call fcn.0057c160
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 0x583505
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x583516
pop esi
ret
push ebx
push edi
push esi
call fcn.0058342e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0057cba7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x58353e
push ebx
push esi
push edi
call fcn.005649a0
add esp, 0xc
push 0
call fcn.0057c160
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x583c8a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005837b1
Function at 0x58de9f
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0058de1b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x58e017
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x58e017
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x58dfc6
jg 0x58def8
test eax, eax
je 0x58dfbc
push 1
push 0x1000
call fcn.0057eb55
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x58df1e
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x58dfb3
push 0x8000
push ebx
call fcn.00576f3d
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x58df4a
jg 0x58df45
cmp ecx, 0x1000
jb 0x58df4a
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0057fe36
add esp, 0x10
cmp eax, 0xffffffff
je 0x58df8f
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x58df45
jl 0x58df76
test ecx, ecx
jne 0x58df37
push dword [ebp - 0xc]
push ebx
call fcn.00576f3d
push esi
call fcn.0057c160
add esp, 0xc
xor edi, edi
jmp 0x58e028
cmp byte [edi + 0x24], 0
je 0x58dfa6
cmp dword [edi + 0x20], 5
jne 0x58dfa6
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x58dfb1
mov edi, dword [edi + 0x18]
jmp 0x58dfb3
xor edi, edi
push esi
call fcn.0057c160
pop ecx
jmp 0x58e028
test ecx, ecx
jg 0x58df88
jl 0x58dfc6
test eax, eax
jae 0x58df88
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0057df47
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x58dfe9
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x58df88
jmp 0x58e020
push ebx
call fcn.005841ec
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x58df88
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x58e028
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x58e025
mov edi, dword [edi + 0x18]
jmp 0x58e028
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0057df47
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x58e9c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x58e9ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x58e9ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402b00
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004042d0
test esi, esi
jne 0x402b36
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004043c0
jmp 0x402b54
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a14
mov edi, eax
test esi, esi
je 0x402b54
cmp dword [ebx], 0
je 0x402b54
dec esi
jmp 0x402b3d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403294
Capabilities:
Query or enumerate registry value

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

Function at 0x4040d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49f04c], 0
je 0x404139
cmp word [0x49f220], 0xd7b2
jne 0x404101
cmp dword [0x49f228], 0
jbe 0x404101
mov eax, 0x49f21c
call dword [0x49f238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49c06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404160
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49c030], 0
jne 0x404155
push 0
push 0x49c064
push 0x49c06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40428c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027d8
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49f04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404254
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405c80
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405eb0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405eb0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d03
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405ecc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d8c
xor eax, eax
push ebp
push 0x405d85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ac8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d6a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405eec
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d6a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d8c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405ea6
cmp byte [ebp - 0xd], 0
jne 0x405dd3
cmp byte [ebp - 0x12], 0
je 0x405ea6
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dec
dec ebx
cmp byte [ebx], 0x2e
je 0x405dfb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405deb
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405ea6
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e38
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ea6
cmp byte [ebp - 0xd], 0
je 0x405ea6
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405ea6
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret