joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015185
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10026d18]
jne 0x1001518f
repz ret
jmp fcn.1001b79b

Function at 0x100153a9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10026d38]
je 0x100153c4
inc edi
cmp edi, 0x17
jb 0x100153b5
cmp edi, 0x17
jae 0x10015544
push ebp
push 3
call fcn.1001bb0f
cmp eax, 1
pop ecx
je 0x10015510
push 3
call fcn.1001bb0f
test eax, eax
pop ecx
jne 0x100153f8
cmp dword [0x1002ae28], 1
je 0x10015510
cmp ebx, 0xfc
je 0x10015543
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1002af90
push ebp
call fcn.100122f6
add esp, 0xc
test eax, eax
je 0x1001542e
push esi
push esi
push esi
push esi
push esi
call fcn.100124dc
add esp, 0x14
push 0x104
mov esi, 0x1002afa9
push esi
push 0
mov byte [0x1002b0ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10015472
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.100122f6
add esp, 0xc
test eax, eax
je 0x10015472
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100124dc
add esp, 0x14
push esi
call fcn.10012360
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100154b7
push esi
call fcn.10012360
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1002b2a4
push 0x10022324
sub ecx, eax
push ecx
push eax
call fcn.1001ba5c
add esp, 0x14
test eax, eax
je 0x100154b7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100124dc
add esp, 0x14
jmp 0x100154b9
xor esi, esi
push 0x10022320
push ebx
push ebp
call fcn.1001986f
add esp, 0xc
test eax, eax
je 0x100154d9
push esi
push esi
push esi
push esi
push esi
call fcn.100124dc
add esp, 0x14
push dword [edi*8 + 0x10026d3c]
push ebx
push ebp
call fcn.1001986f
add esp, 0xc
test eax, eax
je 0x100154fb
push esi
push esi
push esi
push esi
push esi
call fcn.100124dc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1001b89f
add esp, 0xc
jmp 0x10015543
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10015543
cmp ebp, 0xffffffff
je 0x10015543
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10026d3c]
push dword [esi]
call fcn.10012360
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001b89f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001565c
xor ebx, ebx
cmp dword [0x1002b7b0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1001b975
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001ba55
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10022c60
push edi
call esi
cmp eax, ebx
je 0x1001ba55
push eax
call fcn.100155ee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1002b7b0], eax
call esi
push eax
call fcn.100155ee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1002b7b4], eax
call esi
push eax
call fcn.100155ee
mov dword [0x1002b7b8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000fd2f
test eax, eax
pop ecx
pop ecx
je 0x1001b943
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100124dc
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1001b975
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100155ee
cmp eax, ebx
pop ecx
mov dword [0x1002b7c0], eax
je 0x1001b975
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100155ee
pop ecx
mov dword [0x1002b7bc], eax
mov eax, dword [0x1002b7bc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1001b9fa
cmp dword [0x1002b7c0], ecx
je 0x1001b9fa
push eax
call fcn.10015665
push dword [0x1002b7c0]
mov esi, eax
call fcn.10015665
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1001b9fa
cmp edi, ebx
je 0x1001b9fa
call esi
cmp eax, ebx
je 0x1001b9c7
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001b9c7
test byte [ebp - 0x18], 1
jne 0x1001b9fa
lea eax, [ebp - 0x10]
push eax
call fcn.1000fd66
test eax, eax
pop ecx
je 0x1001b9e2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100124dc
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1001b9f1
or dword [ebp + 0x10], 0x200000
jmp 0x1001ba35
or dword [ebp + 0x10], 0x40000
jmp 0x1001ba35
mov eax, dword [0x1002b7b4]
cmp eax, dword [ebp - 8]
je 0x1001ba35
push eax
call fcn.10015665
cmp eax, ebx
pop ecx
je 0x1001ba35
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001ba35
mov eax, dword [0x1002b7b8]
cmp eax, dword [ebp - 8]
je 0x1001ba35
push eax
call fcn.10015665
cmp eax, ebx
pop ecx
je 0x1001ba35
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1002b7b0]
call fcn.10015665
cmp eax, ebx
pop ecx
je 0x1001ba55
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001ba57
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402f14
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
push eax
push dword [ebp + 0x14]
call sub.kernel32.dll_WriteFile
test eax, eax
setne al
movsx eax, al
push eax
call fcn.00402db4
mov esi, eax
cmp dword [0x407e84], 0xffffffff
je 0x402f75
mov eax, dword [ebp + 0x14]
cmp eax, dword [0x407e80]
jne 0x402f75
lea eax, [ebp - 0x1c]
push eax
push dword [0x407e80]
call sub.kernel32.dll_GetConsoleScreenBufferInfo
movsx eax, word [ebp - 0x18]
mov dword [0x407e8c], eax
movsx eax, word [ebp - 0x16]
mov dword [0x407e90], eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40308c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38c
push esi
push edi
mov edi, 3
push 0x4089ac
call fcn.00406594
mov esi, dword [eax]
push 0x4089ac
call fcn.00406594
mov dword [eax], 0x40
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x38c]
push eax
push 0
call fcn.00405dfc
call fcn.00405c78
lea eax, [ebp - 0x150]
push eax
push 1
call fcn.00405d04
call fcn.00404518
test eax, eax
jne 0x4031cd
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 0x40
push 0
call fcn.00405ddc
call fcn.00404518
test eax, eax
jne 0x403143
cmp word [ebp - 0x190], 0x5a4d
jne 0x403143
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405d20
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x190]
push eax
push 2
push 0
call fcn.00405ddc
jmp 0x40314d
mov dword [ebp - 0x154], 0
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 0x154]
call fcn.00405d20
call fcn.00404518
test eax, eax
jne 0x4031b1
cmp word [ebp - 0x190], 0x4550
jne 0x4031b1
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x288]
push eax
push 0xf8
push 0
call fcn.00405ddc
call fcn.00404518
test eax, eax
jne 0x4031b1
cmp dword [ebp - 0x288], 0x4550
jne 0x4031b1
cmp word [ebp - 0x22c], 3
jne 0x4031b1
mov edi, 2
lea eax, [ebp - 0x150]
push eax
call fcn.00405d50
push 0x4089a4
call fcn.00406594
mov dword [eax], 0
push 0x4089ac
call fcn.00406594
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403224
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
call sub.kernel32.dll_CreateThread
mov esi, eax
push esi
call sub.kernel32.dll_CloseHandle
test esi, esi
setne al
movsx eax, al
push eax
call fcn.00402db4
mov esi, eax
mov eax, esi
pop esi
pop ebp
ret 0x18
Function at 0x4032c8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
cmp dword [0x407f24], 0
je 0x4032ea
mov eax, dword [0x407f24]
mov dword [ebp - 4], eax
jmp 0x40337f
push 0x104
call fcn.004045ec
mov dword [ebp - 4], eax
push 0x104
push dword [ebp - 4]
push 0
call sub.kernel32.dll_GetModuleFileNameA
push dword [ebp - 4]
call fcn.004040b4
inc eax
mov ebx, eax
call sub.kernel32.dll_GetCommandLineA
mov esi, eax
mov al, byte [esi]
dec al
cmp al, 0x1f
jbe 0x40332f
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.00403260
mov esi, eax
inc esi
push esi
call fcn.004040b4
inc eax
mov edi, eax
lea eax, [ebp - 4]
push eax
mov eax, ebx
add eax, edi
inc eax
push eax
call fcn.0040464c
call sub.kernel32.dll_AreFileApisANSI
test eax, eax
jne 0x403360
push edi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push esi
call sub.user32.dll_CharToOemBuffA
jmp 0x40336d
push esi
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push edi
call fcn.0040510c
mov eax, dword [ebp - 4]
add eax, ebx
add eax, edi
mov byte [eax], 0
mov eax, dword [ebp - 4]
mov dword [0x407f24], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40345c
Capabilities:
Contain obfuscated stackstrings
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov dword [ebp - 0x24], 0x52414853
mov dword [ebp - 0x20], 0x454d4445
mov dword [ebp - 0x1c], 0x5356354d
call sub.kernel32.dll_GetCurrentProcessId
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xb
call fcn.00405080
xor eax, eax
mov bl, 0
cmp dword [0x407ec8], 0
jne 0x4034aa
push 0x407c18
push 1
call fcn.00402cc0
mov dword [0x407ec8], eax
cmp dword [0x407ec8], 0
jne 0x4034c3
push 0x8000
call fcn.004045ec
mov esi, eax
mov bl, 1
jmp 0x4034fd
lea eax, [ebp - 0x24]
push eax
push 0
push 6
call dword [0x407ec8]
test eax, eax
jne 0x4034ed
lea eax, [ebp - 0x24]
push eax
push 0x8000
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov bl, 1
push 0
push 0
push 0
push 6
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test bl, bl
je 0x403526
push esi
push 0x8000
push 0xff
call fcn.00405168
push esi
push 0x24
push 0
call fcn.00405168
mov eax, esi
add eax, 0xc
push eax
call fcn.004046d4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4038d4
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
call fcn.00403860
lea edx, [ebp - 0x400]
movzx ecx, word [ebp + 0x14]
dec ecx
xor esi, esi
jmp 0x40390c
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov word [edx + 2], ax
mov eax, dword [ebp + 0x18]
movzx eax, byte [eax]
mov word [edx], ax
inc dword [ebp + 0x18]
add edx, 4
inc esi
cmp ecx, esi
jge 0x4038f2
mov ax, word [ebp + 0x14]
mov word [ebp - 0x404], ax
mov word [ebp - 0x402], 1
mov word [ebp - 0x408], 0
mov word [ebp - 0x406], 0
mov ax, word [ebp + 0x10]
mov word [ebp - 0x410], ax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40e], ax
movzx ecx, word [ebp + 0x10]
movzx eax, word [ebp + 0x14]
add ecx, eax
dec ecx
mov word [ebp - 0x40c], cx
mov ax, word [ebp + 0xc]
mov word [ebp - 0x40a], ax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x408]
push dword [ebp - 0x404]
lea eax, [ebp - 0x400]
push eax
push dword [0x407e80]
call sub.kernel32.dll_WriteConsoleOutputA
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x403cb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x403cd4
mov al, byte [ebp - 4]
jmp 0x403cd7
mov al, byte [ebp + 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4060b4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
or edi, 0xffffffff
or eax, 0xffffffff
mov dword [ebp - 0x24], 0
xor esi, esi
mov edx, dword [0x408278]
add edx, 0x24
mov esi, edx
cmp dword [edx], 0xffffffff
je 0x4060f2
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x4060ed
mov ecx, dword [edx + 8]
cmp ecx, dword [esi + 8]
jbe 0x4060ed
mov esi, edx
add edx, 0x10
jmp 0x4060d6
mov edx, esi
cmp dword [edx], 0xffffffff
je 0x406206
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x406206
mov ecx, dword [edx + 8]
cmp ecx, dword [ebp + 0x10]
ja 0x406204
mov ecx, dword [edx + 8]
sub dword [ebp + 0x10], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [edx + 0xc]
test edx, edx
je 0x406204
mov cl, byte [edx]
sub cl, 0x3c
jne 0x40613a
jmp 0x406204
sub cl, 3
jne 0x406154
inc edx
mov dword [ebp - 0xc], edx
movzx ecx, byte [edx]
inc ecx
add edx, ecx
mov byte [ebp - 0x25], 1
jmp 0x4061ff
inc cl
jne 0x406168
movzx ecx, word [edx + 1]
add edi, ecx
add edx, 3
jmp 0x4061ff
inc cl
jne 0x40617c
movzx ecx, word [edx + 1]
add edi, ecx
mov ecx, dword [edx + 3]
add eax, ecx
add edx, 7
jmp 0x40618f
movzx ecx, byte [edx]
shr ecx, 6
add edi, ecx
mov cl, byte [edx]
and cl, 0x3f
movzx ecx, cl
add eax, ecx
inc edx
cmp eax, dword [ebp + 0x10]
jne 0x406199
mov esi, eax
mov dword [ebp - 0x24], edi
cmp eax, dword [ebp + 0x10]
jl 0x4061f6
sub eax, dword [ebp + 0x10]
cmp eax, 0xa
jle 0x4061ac
cmp byte [ebp - 0x25], 0
jne 0x4061f4
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov eax, dword [ebp + 0xc]
mov byte [eax], cl
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x14]
jle 0x4061e2
inc dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
mov dl, byte [eax + ecx]
xor dl, 0xaa
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov byte [eax + ecx], dl
jmp 0x4061bd
movzx eax, word [ebp - 0x24]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
add esi, dword [ebp - 0x18]
mov eax, esi
jmp 0x406206
jmp 0x406204
mov esi, eax
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x25], 0
jmp 0x40612c
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4066dc
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10
cld
push ecx
call fcn.004066b8
call fcn.0040345c
mov dword [0x408278], eax
lea edx, [eax + 0x18]
mov dword [0x4082d8], edx
pop edx
call fcn.00406538
call sub.kernel32.dll_GetEnvironmentStrings
mov dword [0x4082a4], eax
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x4082b8], eax
mov dword [0x4082e0], eax
call fcn.0040308c
cmp eax, 3
setb byte [0x408281]
call fcn.004040ac
lea eax, [esp]
xor edx, edx
mov ecx, dword fs:[edx]
mov dword fs:[edx], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x406968
mov dword [eax + 8], ebp
jmp dword [esp + 0x10]
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x3d6b2816
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x1ecf176e
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x101741bc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1018c880]
jne 0x101741c6
repz ret
jmp fcn.1017446d

Function at 0x10175cc0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x1018c860], 0x18d5
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [0x1018c860], 0x9b5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [0x1018c85c], 0x1044
mov dword [ebp - 0x10], 0
jmp 0x10175d27
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
je 0x10175ddb
jmp 0x10175e47
cmp dword [ebp - 0x10], 0x104
jl 0x10175da3
jmp 0x10175d0c
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + eax*2 - 0xe]
cmp eax, 0x6c
je 0x10175d88
jmp 0x10175d6e
jmp 0x10175e40
mov dword [0x1018c85c], 0x1c42
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x14]
cmp eax, 0x64
je 0x10175d70
jmp 0x10175e40
jmp 0x10175d46
jmp 0x10175d6c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x10175e1b
jmp 0x10175d46
mov dword [0x1018c860], 0x196d
mov dword [ebp - 4], 1
jmp 0x10175e58
jmp 0x10175e45
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x10175db9
jmp 0x10175d0c
mov dword [0x1018c85c], 0xf03
jmp 0x10175dc5
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
jmp 0x10175d27
mov eax, dword [0x1018c860]
sub eax, 0x327
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [0x1018c860], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
movzx ecx, word [ecx + edx*2 - 0x18]
cmp ecx, 0x6f
jne 0x10175e45
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
je 0x10175d4b
jmp 0x10175d9e
mov dword [0x1018c85c], 0x106b
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x10175d32
jmp 0x10175d6c
jmp 0x10175d9e
jmp 0x10175e47
mov dword [0x1018c85c], 0x17ef
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
pop ebp
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x401130
Capabilities:
Delete directory
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x24], 0
jmp loc.004e5600

Function at 0x401b99
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4db144], 1
jne 0x401ba7
call fcn.00402848
push dword [esp + 4]
call fcn.00402881
jmp loc.004e2d00

Function at 0x402881
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417890
cmp edx, dword [eax]
je 0x4028a3
add eax, 8
inc ecx
cmp eax, 0x417920
jl 0x402894
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417890]
jne 0x4029d1
mov eax, dword [0x4db144]
cmp eax, 1
je 0x4029ab
test eax, eax
jne 0x4028d4
cmp dword [0x4177e4], 1
je 0x4029ab
cmp edx, 0xfc
je 0x4029d1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40290b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
jmp 0x4e5200
lea eax, [ebp + 8]
lea esi, [esi + 0x417894]
push 0
push eax
push dword [esi]
call fcn.00403a70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x480a8e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004681a7
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x480ac6
xor eax, eax
jmp 0x480af2
cmp esi, dword [ebp - 4]
je 0x480aef
cmp dword [ebp + 0xc], 0
je 0x480aef
push dword [edi + 0x9c]
call fcn.0048069c
push dword [edi + 0x9c]
mov esi, eax
call fcn.00465be2
pop ecx
pop ecx
cmp esi, eax
je 0x480ac2
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x401855
Capabilities:
Parse pe header

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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100075f3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100075f3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100075f3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100075f3
cmp dword [ecx + 0x74], 0xe
jbe 0x100075f3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000a235
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 0x1000a2d2
push ebx
push esi
call fcn.1000a1fe
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.1000a192
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000a27f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a2d1
push edi
push eax
call fcn.10008c65
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000a29f
call fcn.10008cb3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000a2d0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000a192
add esp, 0x20
test eax, eax
jne 0x1000a2be
push edi
call fcn.10008cb3
jmp 0x1000a2c6
push ebx
call fcn.10008cb3
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 0x1000a53f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011a50
push 0x10011a48
push str.FlsAlloc
push 0x1f
call fcn.1000a45b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a573
push dword [ebp + 8]
mov ecx, esi
call dword [0x10010150]
call esi
jmp 0x1000a579
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000a5bd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011a60
push 0x10011a58
push str.FlsGetValue
push 0x21
call fcn.1000a45b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a5f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x10010150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000a5fc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10011a68
push 0x10011a60
push str.FlsSetValue
push 0x22
call fcn.1000a45b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000a636
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10010150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000f7e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000f80d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000f80d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret