joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d16c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4612ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004161db
mov dword [ebp - 0x14], eax
cmp dword [0x463494], edi
jne 0x41d25d
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41d1ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41d33d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41d33d
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41d33d
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x463494], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x463498], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46349c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4634a4], eax
test eax, eax
je 0x41d25a
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4634a0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41d282
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41d275
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x41d297
push 4
pop eax
jmp 0x41d33f
cmp dword [ebp - 0x14], edi
je 0x41d297
push dword [0x463494]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41d27c
mov eax, dword [0x4634a0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41d2f5
cmp dword [0x4634a4], esi
je 0x41d2f5
push eax
call ebx
push dword [0x4634a4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41d2f5
test eax, eax
je 0x41d2f5
call ecx
test eax, eax
je 0x41d2ea
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41d2ea
test byte [ebp - 8], 1
jne 0x41d2f5
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x41d325
mov eax, dword [0x463498]
cmp eax, esi
je 0x41d322
push eax
call ebx
test eax, eax
je 0x41d322
call eax
mov edi, eax
test edi, edi
je 0x41d322
mov eax, dword [0x46349c]
cmp eax, esi
je 0x41d322
push eax
call ebx
test eax, eax
je 0x41d322
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x463494]
call ebx
test eax, eax
je 0x41d33d
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41d33f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004112dc
leave
ret
Function at 0x4269b9
Capabilities:
Parse pe header

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

Function at 0x438da0
Capabilities:
Parse pe header

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

Function at 0x401000
Capabilities:
Read file on windows
Terminate process

Disassembly:
and dword [0x4030bc], 0
and dword [0x4030c0], 0
and dword [0x4030c4], 0
and dword [0x4030cc], 0
and dword [0x4030c8], 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [section..bss], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [0x40301c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [0x403020], eax
mov dword [0x403008], 0
mov dword [0x40300c], 0x4016dc
mov dword [0x403010], 0
mov dword [0x403014], 0
mov eax, dword [section..bss]
mov dword [0x403018], eax
mov dword [0x403024], 0
mov dword [0x403028], 0
mov dword [0x40302c], 0x402026
push 0x403008
call dword [sym.imp.USER32.DLL_RegisterClassA]
test eax, eax
je 0x4013a3
jmp 0x401426
push 0x10
push str.Error
push str.Startup_failed.
push dword [0x403004]
call dword [sym.imp.USER32.DLL_MessageBoxA]
cmp dword [0x4030c8], 0
je 0x4013cf
mov eax, dword [0x4030c8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [0x4030cc], 0
je 0x4013e3
mov eax, dword [0x4030cc]
push eax
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [0x4030c4], 0
je 0x4013fe
push 0x4030c4
push 0
mov eax, dword [0x4030c0]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
cmp dword [0x4030c0], 0
je 0x401412
mov eax, dword [0x4030c0]
push eax
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [0x4030bc], 0
je 0x401426
mov eax, dword [0x4030bc]
push eax
mov eax, dword [eax]
call dword [eax + 8]
push dword [0x403038]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0xb74430
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x717000]
push edi
jmp 0xb7444a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb74451
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74440
mov eax, 1
add ebx, ebx
jne 0xb74463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb74474
jne 0xb74493
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74493
dec eax
add ebx, ebx
jne 0xb74480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb74458
add ebx, ebx
jne 0xb7448f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb744e5
xor ecx, ecx
sub eax, 3
jb 0xb744ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb7451a
sar eax, 1
mov ebp, eax
jmp 0xb744b6
add ebx, ebx
jne 0xb744b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74484
inc ecx
add ebx, ebx
jne 0xb744c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb74484
add ebx, ebx
jne 0xb744d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb744c6
jne 0xb744e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb744c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb74504
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb744f6
jmp 0xb74446
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb74504
add edi, ecx
jmp 0xb74446
pop esi
mov edi, esi
mov ecx, 0x3fc5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb74522
cmp byte [edi], 0x19
jne 0xb74522
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb74527
lea edi, [esi + 0x76d000]
mov eax, dword [edi]
or eax, eax
je 0xb7459f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe03260]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe033dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb74554
mov ecx, edi
jns 0xb74583
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe033e0]
or eax, eax
je 0xb74599
mov dword [ebx], eax
add ebx, 4
jmp 0xb74571
call dword [esi + 0xe033f0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0xb745d0
cmp al, 0xef
ja 0xb745c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0xb745a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0xb745b2
mov ebp, dword [esi + 0xe033e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0xb74604
sub esp, 0xffffff80
jmp 0x4208f0
Function at 0x100338b
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0x10033ab
cmp eax, 1
je 0x10033ab
push 6
pop eax
jmp 0x10035b9
cmp dword [esi + 0x7c4], ebx
jne 0x10033d4
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.01002892
test eax, eax
jne 0x10033d4
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
jmp 0x10035b9
push edi
call sub.cmutil.dll_GetOSVersion
cmp eax, 0x64
je 0x10033eb
call sub.cmutil.dll_GetOSVersion
cmp eax, 0xc8
jne 0x1003410
lea edi, [esi + 0x54]
mov ecx, edi
call fcn.01002345
test eax, eax
jne 0x1003410
push dword [esi + 0x50]
mov ecx, edi
push dword [esi + 0x4c]
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x1009018]
call fcn.0100482b
lea edi, [esi + 0x54]
mov ecx, edi
call fcn.01002345
test eax, eax
je 0x1003447
mov ecx, edi
call fcn.0100458d
lea ecx, [esi + 0xc4]
cmp dword [ecx], ebx
je 0x1003447
mov eax, dword [edi]
push 3
dec eax
pop ebx
xor edx, edx
div ebx
lea eax, [edx + edx*2]
push dword [edi + eax*4 + 4]
call fcn.010048f0
xor ebx, ebx
cmp dword [esi + 0x44], ebx
jne 0x1003508
lea ecx, [esi + 0xc4]
call fcn.01002382
test eax, eax
je 0x1003467
xor eax, eax
inc eax
jmp 0x10035b8
lea ecx, [esi + 0x1f0]
call fcn.010023f2
test eax, eax
jne 0x100345f
push dword [esi + 0x210]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10035b5
mov ecx, edi
call fcn.01002345
test eax, eax
je 0x10034ce
push dword [esi + 0x80]
mov eax, dword [edi]
push dword [esi + 0x7c]
dec eax
push 3
pop ecx
xor edx, edx
div ecx
lea eax, [edx + edx*2]
push dword [edi + eax*4 + 8]
mov eax, dword [edi]
dec eax
xor edx, edx
div ecx
lea ecx, [esi + 0x20c]
lea eax, [edx + edx*2]
push dword [edi + eax*4 + 4]
push dword [esi + 0x84]
call fcn.0100593c
mov ecx, edi
call fcn.0100231e
test eax, eax
je 0x10034e2
mov ecx, edi
call fcn.0100231e
jmp 0x10034ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x204]
mov ecx, 0x3e8
xor edx, edx
div ecx
lea ecx, [esi + 0x20c]
push eax
call fcn.010058d2
jmp 0x10035b5
lea ecx, [esi + 0x1f0]
call fcn.010023f2
test eax, eax
jne 0x1003557
lea eax, [esi + 0xc4]
cmp dword [eax], ebx
je 0x1003526
cmp dword [eax + 8], ebx
jne 0x1003557
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x1003547
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x1003547
lea ecx, [esi + 0x20c]
call fcn.0100579f
jmp 0x1003552
lea ecx, [esi + 0x20c]
call fcn.010057f1
mov dword [esi + 0x44], ebx
jmp 0x10035b5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [esi + 0x208]
mov eax, 0x7530
cmp ecx, eax
jbe 0x1003572
push 2
jmp 0x10035b7
sub eax, ecx
mov ebx, 0x3e8
xor edx, edx
mov ecx, ebx
div ecx
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0100231e
test eax, eax
push dword [ebp - 4]
je 0x1003599
mov ecx, edi
call fcn.0100231e
jmp 0x10035a5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x204]
xor edx, edx
div ebx
lea ecx, [esi + 0x20c]
push eax
call fcn.01005b63
push 6
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1003d68
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
jmp 0x1003d7e
xor ebx, ebx
xor esi, esi
inc esi
jmp 0x1003dc2
cmp dword [ebp - 0x30], ebx
jne 0x1003d99
cmp dword [ebp - 0x2c], 0x402
jne 0x1003dc2
mov eax, dword [ebp - 0x28]
jmp 0x1003ede
mov eax, dword [edi + 0x210]
lea ecx, [ebp - 0x30]
push ecx
push eax
call dword [0x1009380]
test eax, eax
jne 0x1003dc2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [0x10093dc]
push esi
push ebx
push ebx
lea eax, [ebp - 0x30]
push ebx
push eax
call dword [0x10093c0]
test eax, eax
jne 0x1003d83
cmp dword [edi + 0x7c4], ebx
je 0x1003dfd
cmp dword [edi + 0xc4], ebx
jne 0x1003dfd
cmp dword [edi + 0x44], esi
je 0x1003dfd
push dword [edi + 0x210]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x1003dfd
xor esi, esi
jmp 0x1003e26
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [ebp - 4]
cmp eax, 0x3e8
jb 0x1003e24
call ebx
mov ecx, edi
mov dword [ebp - 4], eax
call fcn.0100338b
cmp eax, 6
jne 0x1003ede
xor ebx, ebx
mov eax, dword [edi + 0x7c4]
test eax, eax
je 0x1003e36
xor ebx, ebx
mov dword [ebp - 0x14], eax
inc ebx
cmp dword [edi + 0x1f4], 0
je 0x1003e4c
mov eax, dword [edi + 0x1f0]
mov eax, dword [eax]
mov dword [ebp + ebx*4 - 0x14], eax
inc ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x1003e63
test ebx, ebx
je 0x1003e63
mov eax, dword [ebp + ebx*4 - 0x18]
mov dword [ebp + ebx*4 - 0x14], eax
inc ebx
cmp dword [edi + 0x7d8], 0
je 0x1003e78
call fcn.01002541
and dword [edi + 0x7d8], 0
neg esi
sbb esi, esi
push 0xff
and esi, 0x3e9
dec esi
push esi
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 0x102
je 0x1003d7c
cmp eax, ebx
jae 0x1003d7c
mov ecx, dword [edi + 0x7c4]
test ecx, ecx
je 0x1003ec8
cmp dword [ebp + eax*4 - 0x14], ecx
jne 0x1003ec8
lea eax, [ebp - 8]
push eax
mov ecx, edi
call fcn.01002892
test eax, eax
je 0x1003ee3
lea ecx, [edi + 0x1f0]
call fcn.010023f2
test eax, eax
je 0x1003d7c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x1003ede

Function at 0x10040d0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x100413a
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jae 0x100413a
push esi
push 8
call sub.cmutil.dll_CmMalloc
mov esi, eax
test esi, esi
je 0x1004139
mov eax, dword [edi + 0x50]
test eax, eax
jne 0x1004105
mov eax, dword [edi + 0x4c]
mov dword [esi], eax
mov eax, dword [edi + 0x210]
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x1003668
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1004132
push esi
call sub.cmutil.dll_CmFree
jmp 0x1004139
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
leave
ret
Function at 0x1004234
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push ecx
push 0x100421e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x1004256
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
leave
ret

Function at 0x1004c59
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0xc], ebx
jne 0x1004d3e
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
push ebx
push ebx
jne 0x1004caa
push 0x1001b4c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0xc], 0x1001b3c
mov dword [ebp - 0x10], 0x1001b28
mov dword [ebp - 8], 0x1001b10
mov dword [ebp - 4], 0x1001af4
mov ecx, 0x1001ae8
jmp 0x1004cd6
push 0x1001adc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0xc], 0x1001ac8
mov dword [ebp - 0x10], 0x1001ab4
mov dword [ebp - 8], 0x1001a9c
mov dword [ebp - 4], 0x1001a7c
mov ecx, 0x1001a6c
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x1004d3a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
push eax
call edi
push dword [ebp - 4]
mov dword [esi + 8], eax
push dword [esi + 0xc]
call edi
push dword [ebp - 8]
mov dword [esi], eax
push dword [esi + 0xc]
call edi
push dword [ebp - 0xc]
mov dword [esi + 4], eax
push dword [esi + 0xc]
call edi
push dword [ebp - 0x10]
mov dword [esi + 0x14], eax
push dword [esi + 0xc]
call edi
cmp dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
pop edi
je 0x1004d2e
cmp eax, ebx
je 0x1004d2e
cmp dword [esi], ebx
je 0x1004d2e
cmp dword [esi + 4], ebx
je 0x1004d2e
cmp dword [esi + 8], ebx
jne 0x1004d3e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0xc], ebx
xor eax, eax
jmp 0x1004d41
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret

Function at 0x100559a
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
push 0x1001ca8
push edi
push edi
push edi
mov dword [ebp - 4], edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, eax
cmp ebx, edi
je 0x10055fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x10055fe
push 8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, edi
je 0x10055fe
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
lea eax, [ebp - 8]
push eax
push edi
push esi
push 0x100542a
push edi
push edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1005610
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x1005610
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x10057f1
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001b98
mov esi, ecx
push 0x414
push dword [esi + 4]
xor edi, edi
inc edi
mov dword [esi + 0x10], edi
call dword [0x1009368]
push 0x2b37
push dword [0x1009018]
call sub.cmutil.dll_CmLoadStringW
mov ebx, eax
push ebx
push edi
push dword [esi + 4]
call dword [0x1009368]
push ebx
call sub.cmutil.dll_CmFree
push 0x2b38
push dword [0x1009018]
call sub.cmutil.dll_CmLoadStringW
mov edi, eax
push edi
push 0x413
push dword [esi + 4]
call dword [0x1009368]
push edi
call sub.cmutil.dll_CmFree
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x415
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x100588a
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x10058b7
push 5
push 0x410
push dword [esi + 4]
call edi
push eax
call ebx
push 5
push 0x411
push dword [esi + 4]
call edi
push eax
call ebx
push 5
push 0x412
push dword [esi + 4]
call edi
push eax
call ebx
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
ret

Function at 0x1005c82
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
and dword [esi + 0x10], 0
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
neg eax
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.01005bac
push 0x2b35
push dword [0x1009018]
call sub.cmutil.dll_CmLoadStringW
mov edi, eax
push edi
push 1
push dword [esi + 4]
call dword [0x1009368]
push edi
call sub.cmutil.dll_CmFree
push 0x2b36
push dword [0x1009018]
call sub.cmutil.dll_CmLoadStringW
mov edi, eax
push edi
push 0x413
push dword [esi + 4]
call dword [0x1009368]
push edi
call sub.cmutil.dll_CmFree
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x1005d11
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x1005d3e
push 0
push 0x410
push dword [esi + 4]
call ebx
push eax
call edi
push 0
push 0x411
push dword [esi + 4]
call ebx
push eax
call edi
push 0
push 0x412
push dword [esi + 4]
call ebx
push eax
call edi
push 5
push 0x415
push dword [esi + 4]
call ebx
push eax
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.01004b31
Function at 0x10060ab
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1009004]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [0x1009024], ebx
push edi
mov dword [ebp - 4], eax
mov edi, 0x400
jne 0x1006103
push 0x103
lea eax, [ebp - 0x108]
push eax
push 0x11
push edi
mov dword [0x1009024], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x108]
push eax
call sub.cmutil.dll_CmAtolA
mov dword [0x1009020], eax
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x1001d20
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x10]
add esp, 0xc
dec eax
push eax
push esi
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, dword [0x1009020]
cmp eax, ebx
je 0x1006165
cmp edi, eax
jbe 0x1006165
mov ecx, esi
sub ecx, eax
lea eax, [ecx + edi - 1]
push eax
call sub.cmutil.dll_CmIsDigitA
test eax, eax
jne 0x1006165
sub esi, dword [0x1009020]
mov byte [esi + edi - 1], bl
jmp 0x100616b
mov dword [0x1009024], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010061f2
leave
ret 0xc

Function at 0x10061f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1009004]
jne 0x1006203
test ecx, 0xffff0000
jne 0x1006203
ret
jmp fcn.0100620d
Function at 0x10062f2
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001d30
call fcn.0100651c
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1006346
mov eax, dword [0x100003c]
cmp dword [eax + 0x1000000], 0x4550
jne 0x1006346
movzx ecx, word [eax + 0x1000018]
cmp ecx, 0x10b
je 0x100635e
cmp ecx, 0x20b
je 0x100634b
mov dword [ebp - 0x1c], ebx
jmp 0x1006375
cmp dword [eax + 0x1000084], 0xe
jbe 0x1006346
xor ecx, ecx
cmp dword [eax + 0x10000f8], ebx
jmp 0x100636f
cmp dword [eax + 0x1000074], 0xe
jbe 0x1006346
xor ecx, ecx
cmp dword [eax + 0x10000e8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x1009494], edi
mov dword [0x1009498], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009350]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100934c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100949c], eax
call fcn.01006512
cmp dword [0x1009008], ebx
jne 0x10063d2
push fcn.01006512
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010064fb
push 0x100138c
push 0x1001388
call sub.msvcrt.dll__initterm
mov eax, dword [0x1009348]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009344]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1001384
push 0x100137c
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x100645d
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x100643d
cmp cl, 0x22
jne 0x100642e
cmp byte [eax], 0x22
jne 0x1006446
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1006451
cmp cl, 0x20
jbe 0x1006442
test byte [ebp - 0x54], 1
je 0x1006468
movzx ecx, word [ebp - 0x50]
jmp 0x100646b
cmp byte [eax], 0x20
jbe 0x1006446
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100645d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.01005311
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1006489
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x10064c5
mov eax, esi
jmp 0x10064d9
call fcn.01006557
ret