joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1017ea80
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x10248f44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, ebx
push esi
push edi
cmp dword [ebx + 0x14], 0x10
jb 0x1017eaa3
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1017ec1c
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x1017ec5f
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov esi, 0x1021fa1c
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1017ead0
sub esi, edx
mov dword [ebp - 0x124], ebx
cmp dword [ebx + 0x14], 0x10
jb 0x1017eaed
mov eax, dword [ebx]
mov dword [ebp - 0x124], eax
test esi, esi
je 0x1017eb6b
cmp ecx, edi
jae 0x1017eb6b
push 0x100
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.1018f2e0
mov ecx, 0x1021fa1c
lea edx, [esi + 0x1021fa1c]
add esp, 0xc
cmp edx, ecx
je 0x1017eb30
nop word [eax + eax]
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x11c], 1
cmp ecx, edx
jne 0x1017eb20
mov edx, dword [ebp - 0x124]
mov esi, dword [ebp - 0x120]
add esi, edx
lea ecx, [edx + edi]
cmp esi, ecx
jae 0x1017eb6b
nop word [eax + eax]
movzx eax, byte [esi]
cmp byte [ebp + eax - 0x11c], 0
jne 0x1017eb64
inc esi
cmp esi, ecx
jb 0x1017eb50
jmp 0x1017eb6b
sub esi, edx
cmp esi, 0xffffffff
jne 0x1017eb6d
mov esi, edi
cmp edi, esi
mov dword [ebp - 0x1c], 0
mov eax, esi
mov dword [ebp - 0xc], 0
cmovb eax, edi
mov dword [ebp - 8], 0xf
cmp dword [ebx + 0x14], 0x10
mov ecx, ebx
jb 0x1017eb93
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10047990
cmp dword [ebp - 0xc], 0
je 0x1017ebd2
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1017ebd2
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.101a283e
add esp, 4
test eax, eax
jne 0x1017ec2f
mov edx, dword [ebp - 8]
lea ecx, [esi + 1]
mov dword [ebp - 0x120], ecx
cmp edx, 0x10
jb 0x1017ec11
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1017ec01
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1017ec72
push edx
push ecx
call fcn.1018a765
mov ecx, dword [ebp - 0x120]
add esp, 8
mov edi, dword [ebx + 0x10]
cmp ecx, edi
jb 0x1017eac6
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1018a722
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x1017ec5f
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1017ec55
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1017ec72
push edx
push ecx
call fcn.1018a765
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1018a722
mov esp, ebp
pop ebp
ret
call fcn.1019291f
int3
Function at 0x1017f4b0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c25c5
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10248f44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
call fcn.101833a0
mov edi, eax
mov dword [ebp - 0x48], edi
lea esi, [edi + 0x30]
push esi
mov dword [ebp - 0x50], esi
call fcn.1018d19b
add esp, 4
test eax, eax
jne 0x1017f5d3
push 0x64
mov dword [ebp - 4], eax
call fcn.1018a730
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1017f553
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], vtable.std::_Func_impl_no_alloc_class__lambda_3e97ee1a117ac990b5f02fd2a9af9208___void___.0
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x40]
mov ebx, 1
mov byte [ebp - 4], 2
push dword [ebp - 0x44]
mov dword [ebp - 0x3c], ebx
push ecx
mov ecx, eax
call fcn.10188310
mov edi, eax
jmp 0x1017f555
xor edi, edi
or ebx, 2
test bl, 1
je 0x1017f575
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1017f575
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x4c]
add eax, 0x110
cmp eax, ecx
je 0x1017f598
mov ebx, dword [eax]
mov dword [eax], edi
test ebx, ebx
je 0x1017f5ae
mov ecx, ebx
call fcn.101884e0
push 0x64
push ebx
jmp 0x1017f5a6
test edi, edi
je 0x1017f5ae
mov ecx, edi
call fcn.101884e0
push 0x64
push edi
call fcn.1018a765
add esp, 8
push esi
call fcn.1018d1c0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018a722
mov esp, ebp
pop ebp
ret
push eax
call fcn.1018ce33
int3

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x1018367e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x10188310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2e15
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x10248f44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x50], edi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], edi
movq qword [edi + 4], xmm0
lea eax, [edi + 0xc]
mov dword [ebp - 4], 0
push 2
push eax
call fcn.1018d17a
lea eax, [edi + 0x3c]
push eax
call fcn.1018cae6
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
test edx, edx
jl 0x10188462
mov eax, dword [ebp + 0xc]
jg 0x10188388
test eax, eax
je 0x10188462
lea ecx, [ebp - 0x40]
mov byte [edi], 1
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x1c], 0
mov ecx, dword [esi + 0x24]
mov byte [ebp - 4], 3
test ecx, ecx
je 0x101883b7
mov eax, dword [ecx]
lea edx, [ebp - 0x40]
push edx
call dword [eax]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push 0x38
mov byte [ebp - 4], 4
call fcn.1018a730
mov esi, eax
add esp, 4
mov dword [ebp - 0x50], esi
test esi, esi
je 0x10188407
mov eax, dword [ebp - 0x48]
lea ebx, [esi + 8]
mov dword [esi], eax
mov dword [ebp - 0x4c], ebx
mov dword [ebx + 0x24], 0
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x101883f9
mov eax, dword [ecx]
push ebx
call dword [eax]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
jmp 0x10188409
xor esi, esi
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 7
push eax
push 0
push esi
push 0x10188290
push 0
push 0
call fcn.1019d81f
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x58], ecx
test ecx, ecx
je 0x1018848a
cmp dword [edi + 8], 0
jne 0x10188485
mov eax, dword [ebp - 0x54]
xorps xmm0, xmm0
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x1c]
movlpd qword [ebp - 0x58], xmm0
mov dword [edi + 8], eax
test ecx, ecx
je 0x10188465
mov edx, dword [ecx]
lea eax, [ebp - 0x40]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
jmp 0x10188465
mov byte [edi], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018a722
mov esp, ebp
pop ebp
ret 0xc
call fcn.1019d8b0
push 6
mov dword [ebp - 0x54], 0
call fcn.1018ce60
int3
Function at 0x1018a110
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c3255
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x10248f44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.10196fc7
add esp, 0x10
cmp eax, esi
jne 0x1018a174
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1018a722
mov esp, ebp
pop ebp
ret 4
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1017f280
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push str.Failed_writing_to_file
push eax
call fcn.1005ba20
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.1019d64b
push dword [eax]
push esi
call fcn.10184200
int3

Function at 0x101a91e8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101a905e

Function at 0x101ac117
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101abc6a

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40e505
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40e514
pop dword [ebp - 0x2c]
mov eax, 0x40e514
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x7f0b4fc2
add dword [ebp - 0x3c], 0xcf46f589
mov dword [ebp - 0x38], 0x19eb16b5
sub dword [ebp - 0x38], 0xe7b7ca70
mov dword [ebp - 0x34], 0xe0eb2bfd
sub dword [ebp - 0x34], 0x949ee7cf
mov dword [ebp - 0x30], 0x21017051
add dword [ebp - 0x30], 0xdefe8faf
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xde8793d2
sub dword [ebp - 0x3c], 0x6a152a7c
mov dword [ebp - 0x38], 0xf15ccb5a
add dword [ebp - 0x38], 0x500f961b
mov dword [ebp - 0x34], 0xfe53e2f3
add dword [ebp - 0x34], 0x651b8979
mov dword [ebp - 0x30], 0x51ac8ce
add dword [ebp - 0x30], 0xfae53732
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc9f8f224
add eax, 0x36493f00
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3cd3c
push 0
call eax
mov ecx, 0xd9741880
sub ecx, 0xd973d415
xor ebx, ebx
add ebx, eax
mov esi, 0x83b310ae
sub esi, 0x836fccae
add esi, dword [ebp - 0x2c]
mov edx, 0x2d22c5f7
sub edx, 0xe13ab7e3
xor dword [ebp - 0x18], 0x20013a07
mov edi, dword [esi]
xor dword [ebp - 8], 0xf608a525
xor edi, edx
xor dword [ebp - 0x18], 0x46c6d308
mov dword [ebx], edi
add dword [ebp - 0x14], esi
add ebx, 0xaaf5a04c
sub ebx, 0xaaf5a048
add esi, 4
loop 0x40e62e
add eax, 0xcd6ec6c8
sub eax, 0xcd6dc249
xor ebx, ebx
add ebx, eax
add eax, 0x2cc6089a
sub eax, 0x2cc60895
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x45a577
Capabilities:
Terminate process

Disassembly:
push esi
push esi
xor ecx, ecx
call fcn.0045a6ab
mov ebp, eax
mov ebx, 0x4f7c68
mov ecx, dword [ebx + 0x24]
call fcn.0045a6ab
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, eax
mov eax, dword [ebx + 0x3c]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ecx, esi
call fcn.0045a727
mov esi, dword [ebx + 0x40]
mov ecx, eax
cmp dword [esi], 0
je 0x45a5f7
mov dword [esp], ecx
call fcn.0045a747
movzx eax, al
mov ecx, dword [esp]
cmp al, byte [esi]
je 0x45a5e4
cmp al, byte [esi + 1]
jne 0x45a6a2
call fcn.0045a75b
cmp eax, dword [esi + 4]
je 0x45a5f7
cmp eax, dword [esi + 8]
jne 0x45a6a2
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, eax
mov eax, dword [ebx + 0x3c]
push eax
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov eax, dword [ebx + 0xc]
test eax, eax
jbe 0x45a633
xor eax, eax
mov ecx, dword [ebx + 0x20]
mov esi, dword [ecx + eax]
mov dword [edx + eax], esi
mov edi, dword [ebx + 0x38]
add eax, edi
mov ecx, dword [ebx + 0xc]
cmp eax, ecx
jb 0x45a61e
mov ecx, dword [esp + 4]
call fcn.0045a77b
mov edi, eax
test edi, edi
je 0x45a6a2
lea esi, [esp]
push esi
mov esi, dword [ebx + 0x30]
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push eax
push edx
push esi
call edi
mov edx, dword [ebx + 4]
add ebp, edx
mov eax, dword [ebx + 8]
mov edx, dword [ebp + 4]
cmp eax, 8
jbe 0x45a67c
push 8
pop eax
mov ecx, dword [ebp + eax]
add ecx, edx
mov dword [esi + eax], ecx
mov ecx, dword [ebx + 0x38]
add eax, ecx
mov ecx, dword [ebx + 8]
cmp eax, ecx
jb 0x45a667
mov edx, dword [ebx + 0x14]
lea eax, [esp]
push eax
mov dword [esi + 8], edx
push dword [esp + 4]
mov ecx, dword [ebx + 8]
push ecx
push esi
call edi
mov edx, dword [esi + 0xc]
add edx, esi
mov eax, dword [ebx]
add edx, eax
mov ebx, dword [ebx]
add esi, ebx
push esi
call edx
pop eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x45a77b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0xc
mov esi, ecx
mov dword [esp], edx
test esi, esi
je 0x45a7c3
mov ebp, dword [esi + 0x3c]
mov eax, dword [ebp + esi + 0x78]
mov dword [esp + 8], eax
mov edx, dword [eax + esi + 0x18]
mov ebp, dword [eax + esi + 0x20]
add ebp, esi
mov dword [esp + 4], edx
test edx, edx
jbe 0x45a7c3
xor ebx, ebx
mov ecx, dword [ebp + ebx*4]
add ecx, esi
mov edx, dword [esp]
call fcn.0045a7eb
test al, al
jne 0x45a7c7
inc ebx
cmp ebx, dword [esp + 4]
jb 0x45a7aa
xor eax, eax
jmp 0x45a7e0
mov eax, dword [esp + 8]
mov edx, dword [eax + esi + 0x24]
add edx, esi
mov ecx, dword [eax + esi + 0x1c]
add ecx, esi
movzx ebx, word [edx + ebx*2]
mov eax, dword [ecx + ebx*4]
add eax, esi
add esp, 0xc
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x43dee0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff8
sub esp, 0x58
lea eax, [fcn.0043dee0]
mov word [esp + 0x54], 0x3ddf
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0x2f05
mov dword [esp + 0x34], 0x1b5
mov cx, word [esp + 0x56]
add cx, 0xbdf
mov word [esp + 0x56], cx
mov edx, dword [esp + 0x34]
mov esi, edx
xor esi, 0x1335
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x34]
xor esi, 0x7bd
mov word [esp + 0x56], 0x4d54
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], eax
mov bl, byte [esp + 0x47]
mov dword [esp + 0x10], edx
mov byte [esp + 0xf], bl
jmp 0x43df63
mov al, 1
test al, 1
jne 0x43df63
jmp 0x43dfd3
jmp 0x43e02b
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x621e
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
xor edx, edx
mov esi, 0x91a8
sub esi, eax
mov eax, edx
sbb eax, ecx
mov ecx, 0x621e
sub ecx, esi
sbb edx, eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
jb 0x43e06a
jmp 0x43df5e
mov dword [esp + 0x14], 0
jmp 0x43dffc
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
jmp 0x43dffc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x3c]
cmp dword [ecx + eax], 0x4550
je 0x43dfb3
jmp 0x43df5e
mov eax, dword [esp + 0x34]
xor eax, 0x78ba
mov ecx, dword [esp + 0x30]
mov dl, byte [esp + 0xf]
add dl, 0x62
mov byte [esp + 0x47], dl
cmp ecx, eax
ja 0x43dffc
jmp 0x43dfa9
mov eax, dword [esp + 0x14]
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
mov ax, 0x7aaf
mov ecx, dword [esp + 0x10]
or ecx, 0x1918
mov dx, word [esp + 0x54]
mov dword [esp + 0x50], ecx
xor dx, 0x3c8a
sub ax, word [esp + 0x54]
mov word [esp + 0x22], dx
cmp ax, word [esp + 0x22]
jbe 0x43dfbd
jmp 0x43dff1
mov eax, 0xfffff1b5
mov ecx, 0x11b5
sub ecx, dword [esp + 0x34]
sub eax, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
sub edx, ecx
and edx, eax
mov dword [esp + 0x50], 0x314f
mov dword [esp + 0x24], edx
jmp 0x43df56
mov eax, dword [esp + 0x24]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x43dfbd
jmp 0x43e02b
mov eax, 0x4574
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x47], 0xb0
cmp eax, ecx
jae 0x43e056
jmp 0x43dfb3
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41d8a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x16000]
push edi
jmp 0x41d8ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d8c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d8b0
mov eax, 1
add ebx, ebx
jne 0x41d8d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d8c8
jne 0x41d8e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d8c8
xor ecx, ecx
sub eax, 3
jb 0x41d8f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d96a
mov ebp, eax
add ebx, ebx
jne 0x41d903
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d934
inc ecx
add ebx, ebx
jne 0x41d920
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d915
jne 0x41d931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d915
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d954
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d945
jmp 0x41d8b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d954
add edi, ecx
jmp 0x41d8b6
pop esi
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41d9b3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d971
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d044]
or eax, eax
je 0x41d9ad
mov dword [ebx], eax
add ebx, 4
jmp 0x41d98e
call dword [esi + 0x1d040]
mov ebp, dword [esi + 0x1d048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1df]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41d9e7
sub esp, 0xffffff80
jmp 0x40380f
Function at 0x402ab4
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.00404080
test esi, esi
jne 0x402aea
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404170
jmp 0x402b08
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402968
mov edi, eax
test esi, esi
je 0x402b08
cmp dword [ebx], 0
je 0x402b08
dec esi
jmp 0x402af1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4031a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x480024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403238
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x403218
xor eax, eax
push ebp
push 0x403211
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 0x403254
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403218
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x480024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x480024], ax
mov esp, ebp
pop ebp
ret

Function at 0x403f04
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48904c], 0
je 0x403f65
cmp word [0x489220], 0xd7b2
jne 0x403f2d
cmp dword [0x489228], 0
jbe 0x403f2d
mov eax, 0x48921c
call dword [0x489238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x480070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403f8c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x480034], 0
jne 0x403f81
push 0
push 0x480068
push 0x480070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x405594
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_1
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405617
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
je 0x405617
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4057e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4056a0
xor eax, eax
push ebp
push 0x405699
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004053dc
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_1
test eax, eax
je 0x40567e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405800
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x40567e
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 0x4056a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
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_1
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4057ba
cmp byte [ebp - 0xd], 0
jne 0x4056e7
cmp byte [ebp - 0x12], 0
je 0x4057ba
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405700
dec ebx
cmp byte [ebx], 0x2e
je 0x40570f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4056ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4057ba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40574c
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 0x4057ba
cmp byte [ebp - 0xd], 0
je 0x4057ba
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 0x4057ba
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