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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x40288e
pop dword [ebp - 0x34]
mov eax, 0x40288e
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x96d11a1a
add dword [ebp - 0x44], 0xb7812b31
mov dword [ebp - 0x40], 0x49297980
sub dword [ebp - 0x40], 0x16f62d3b
mov dword [ebp - 0x3c], 0x6f4204ae
add dword [ebp - 0x3c], 0xdd0a3f80
mov dword [ebp - 0x38], 0xcca88441
sub dword [ebp - 0x38], 0xcca88441
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xc289d93
sub dword [ebp - 0x44], 0x97b6343d
mov dword [ebp - 0x40], 0xb6235e01
sub dword [ebp - 0x40], 0x74b6fc8c
mov dword [ebp - 0x3c], 0xc1663096
sub dword [ebp - 0x3c], 0x5df6c42a
mov dword [ebp - 0x38], 0xb18a076
sub dword [ebp - 0x38], 0xb18a076
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x78daef47
add eax, 0x87658161
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x39166
push 0
call eax
mov ecx, 0x51f7
xor ebx, ebx
add ebx, eax
mov edx, 0x80c9a578
add edx, 0x7f775a88
add edx, dword [ebp - 0x34]
mov edi, 0x28e6b835
xor dword [ebp - 0x2c], edx
mov esi, dword [edx]
sub dword [ebp - 0xc], eax
xor esi, edi
sub dword [ebp - 0x14], eax
mov dword [ebx], esi
mov dword [ebp - 0x18], 0x85df240f
add ebx, 0x2829ca9
add ebx, 0xfd7d635b
add edx, 0xaa053a9a
sub edx, 0xaa053a96
loop 0x40299c
add eax, 0x7dfd394
sub eax, 0x7de98e5
mov ebx, eax
add eax, 0x2c703efb
add eax, 0xd38fc10a
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219

Function at 0x7e38f4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7e38fe
pushal
call 0x7e3904
pop ebp
sub ebp, 0x10
sub ebp, 0x3e38f4
jmp 0x7e391a
mov eax, 0x3e38f4
add eax, ebp
add eax, 0x4c
mov ecx, 0x618
mov edx, 0x207081b6
xor byte [eax], dl
inc eax
dec ecx
jne 0x7e3931
jmp 0x7e3944
xlatb
stosb byte es:[edi], al
cmp eax, 0x8a3f3d7b
mov dh, 0xb6
mov dh, 0x37
ja 0x7e399d
mov dh, 0xb6
mov dh, 0xb5
jnp 0x7e3963
mov bl, 0xb6
mov dh, 0xb6
or al, 0x9e
mov dh, 0xb6
mov dh, 0x41
push esp
mov ch, 0x7e
cmp eax, 0xb6b6ba37
mov dh, 0xb5
aaa
mov edx, 0xb5b6b6b6
jae 0x7e39a6
rcl byte [edx - 0x6d4dc0b6], cl
out 0xde, al
loop 0x7e3942
mov eax, 0xb16deb6
cdq
mov dh, 0xb7
lcall 0x2911, 0xd7dbde92
adc dword [ecx], ebp
pop esi
mov bl, 0xb6
mov dh, 0xb6
pop edi
cwde
mov dh, 0xb6
mov dh, 0x3b
rcl byte [edx - 0x6d65c0b6], cl
loop 0x7e3982
cmp eax, 0xb6b6be33
mov dh, 0x3d
and edi, dword [edx + 0x3db6b6b6]
cmp eax, 0xb6b6ba23
mov dh, 0x3d
cmp esp, dword [esi + 0x77b6b6b6]
mov dh, 0xb6
mov dh, 0x77
pop edi
mov ah, 0x87
mov ah, 0x35
je 0x7e3963
invalid
Function at 0x105ea058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x105ea1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105ea07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105ea06a
add dl, dl
jne 0x105ea089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105ea0dc
xor eax, eax
add dl, dl
jne 0x105ea096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105ea17d
add dl, dl
jne 0x105ea0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105ea0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105ea0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105ea0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105ea0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105ea075
mov eax, 1
add dl, dl
jne 0x105ea0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105ea0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105ea0e1
sub eax, ebx
mov ebx, 1
jne 0x105ea128
mov ecx, 1
add dl, dl
jne 0x105ea10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105ea119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105ea105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105ea075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105ea13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105ea14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105ea136
cmp eax, 0x7d00
jae 0x105ea16d
cmp eax, 0x500
jb 0x105ea168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105ea075
cmp eax, 0x7f
ja 0x105ea170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105ea075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105ea19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105ea075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x1002d441
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [eax]
cmp al, 0x22
jmp 0x1002d483
inc esi
mov al, byte [esi]
test al, al
je 0x1002d461
cmp al, 0x22
jne 0x1002d456
cmp byte [esi], 0x22
jne 0x1002d473
inc esi
jmp 0x1002d473
cmp byte [esi], 0
je 0x1002d483
cmp byte [esi], 0x20
jg 0x1002d483
inc esi
cmp byte [esi], 0
jne 0x1002d478
mov eax, dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
sub ax, 0x2b70
jne 0x1002d48f
jmp 0x1002d457
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x44]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
test byte [ebp - 0x18], 1
mov eax, 0xa
je 0x1002d4af
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1022a25
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 1
push 0xb9
push 0x10088a0
lea ecx, [ebp - 0x24]
call fcn.0101a2c6
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
mov eax, 0xbb
jne 0x1022a66
mov dword [ebp - 0x24], 0x80070057
mov word [ebp - 0x1e], ax
jmp 0x1022b16
mov esi, dword [ebp + 8]
push ebx
push dword [esi + 8]
mov dword [esi + 4], edi
push 2
push 0x46f
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], ax
call edi
push 0x1e
push 1
push 0x46b
push dword [esi + 4]
call edi
push ebx
push ebx
push esi
push 0x10227e7
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
mov eax, dword [esi + 0x20]
cmp eax, ebx
je 0x1022ac0
cmp eax, 0xffffffff
je 0x1022ac0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
cmp eax, ebx
je 0x1022acf
cmp eax, 0xffffffff
jne 0x1022ae2
call fcn.0101df25
mov dword [ebp - 0x24], eax
mov eax, 0xce
mov word [ebp - 0x1e], ax
jmp 0x1022b15
mov eax, 0xce
mov word [ebp - 0x20], ax
mov eax, dword [esi + 0x20]
push 0xc8
push eax
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1022b15
push ebx
push 2
push 0x466
push dword [esi + 4]
mov dword [esi + 0x18], 1
call edi
pop ebx
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call fcn.0101a59c
pop edi
mov eax, esi
pop esi
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x101f4525
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x3f934b9d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x4033e0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x406bd8
push eax
mov eax, dword [esp + 0x10]
test eax, eax
mov dword fs:[0], esp
push ebx
push ebp
push edi
jne 0x403414
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x20]
lea edi, [esi + 0x34]
push eax
mov ecx, edi
call dword [0x408278]
mov ecx, dword [esp + 0x24]
lea ebp, [esi + 0x38]
push ecx
mov ecx, ebp
call dword [0x408278]
mov edx, dword [esp + 0x28]
push edx
lea ecx, [esi + 0x3c]
call dword [0x408278]
push 1
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_RFX_Text_Bulk]
push 0x40892c
mov ecx, eax
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
lea ecx, [esp + 0x1c]
setne bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x403481
push 0x40892c
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
mov eax, dword [ebp]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x40349a
mov ebp, dword [ebp]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x14
call sub.MFC71U.DLL_CWordArray::CWordArray
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x4034c9
push 0
push 0
push 0
push 0
push 1
push 0
mov ecx, eax
call sub.MFC71U.DLL_CInternetFile::CInternetFile
jmp 0x4034cb
xor eax, eax
push 0
push 0
push 1
push 0
mov dword [esi + 0x40], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x28], eax
pop edi
pop ebp
pop ebx
mov eax, ecx
mov ecx, dword [esp]
mov dword fs:[0], ecx
add esp, 0xc
ret 0x10
Function at 0x4036c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406dab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebp - 4], edi
call dword [sym.imp.MFC71U.DLL_CWinThread::GetMainWnd]
push eax
push 0x40893e
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_CWinThread::CommonConstruct]
test eax, eax
lea ecx, [ebp - 0x18]
setne bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
test bl, bl
je 0x4037b9
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT]
push edi
mov bl, 2
push 0x408a68
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Find]
mov esi, eax
cmp esi, 0xffffffff
lea ecx, [ebp - 0x14]
je 0x4037b3
inc esi
push esi
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.MFC71U.DLL_CToolBar::Layout]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x403773
test al, 0x10
jne 0x403787
mov ecx, dword [ebp - 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
neg edi
sbb edi, edi
neg edi
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call dword [0x40826c]
push esi
push 0x408a68
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Find]
lea ecx, [ebp - 0x18]
mov esi, eax
mov byte [ebp - 4], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x403748
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp + 8]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406134
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x408580
call fcn.00406414
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x406174
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406174
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40618c
cmp eax, 0x20b
je 0x406179
mov dword [ebp - 0x1c], edi
jmp 0x4061a0
cmp dword [ecx + 0x84], 0xe
jbe 0x406174
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40619a
cmp dword [ecx + 0x74], 0xe
jbe 0x406174
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x40b288], 0xffffffff
or dword [0x40b28c], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x40b17c]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x40b178]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40b284], eax
call fcn.00406530
call fcn.004065d0
cmp dword [0x40b04c], edi
jne 0x406200
push fcn.004065d0
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004065be
push 0x40b020
push 0x40b01c
call sub.MSVCR71.dll__initterm
push 0x406574
call fcn.00406364
mov eax, dword [0x40b174]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40b170]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x406254
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x40b018
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40627e
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x406338
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4062ed
cmp ax, di
je 0x406294
cmp dword [ebp - 0x20], edi
jne 0x4062ed
mov ax, word [esi]
cmp ax, di
je 0x4062a9
cmp ax, 0x20
ja 0x4062a9
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406294
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4062c5
movzx eax, word [ebp - 0x54]
jmp 0x4062c8
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00406a22
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4062e5
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x406332
cmp ax, 0x22
jne 0x4062fe
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x40627e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040644f
ret
Function at 0x404794
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406aa0
test esi, esi
jne 0x4047ca
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406c08
jmp 0x4047e8
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004046d8
mov edi, eax
test esi, esi
je 0x4047e8
cmp dword [ebx], 0
je 0x4047e8
dec esi
jmp 0x4047d1
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40584c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405c38
mov byte [esp], al
cmp byte [esp], 0
jne 0x4059d5
test edi, edi
je 0x4059d5
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40590c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4058e7
cmp edi, 0xffffffff
je 0x4058ab
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4058ab
mov byte [esp], 0
jmp 0x4059d5
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4058e7
test ebx, ebx
jne 0x4058e0
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402624
test eax, eax
jne 0x4058e0
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4059d5
pause
dec ebp
test ebp, ebp
jg 0x405890
cmp edi, 0xffffffff
je 0x40590c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40590a
mov byte [esp], 0
jmp 0x4059d5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40585a
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402624
cmp ebx, eax
jne 0x40590c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405a48
mov edx, eax
mov ebx, dword [0x5048cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405973
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405971
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405973
xor edi, edi
cmp byte [esp], 0
je 0x40599c
mov ebx, dword [esi]
test bl, 1
jne 0x4059b5
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402624
cmp ebx, eax
jne 0x405979
mov byte [esp + 1], 1
jmp 0x4059b5
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402624
cmp ebx, eax
jne 0x40599c
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405926
cmp byte [esp], 0
je 0x4059d5
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406750
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x504054], 0
je 0x4067b1
cmp word [0x504330], 0xd7b2
jne 0x406779
cmp dword [0x504338], 0
jbe 0x406779
mov eax, 0x50432c
call dword [0x504348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x4067dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4f2028], 0
jne 0x4067cd
push 0
push 0x4f2798
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40695c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4f202c], 0
je 0x406987
mov edx, edi
mov eax, esi
call dword [0x4f202c]
mov ebx, eax
jmp 0x406998
mov eax, 8
call fcn.0040440c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x504055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406924
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x4069cd
mov edx, 8
mov eax, ebx
call fcn.00404428
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40903c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4091a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406aa0
cmp si, word [0x4f27e8]
jb 0x4090d4
cmp si, word [0x4f29e8]
ja 0x4090d4
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4090d4
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4f27e8]
jae 0x4090ae
mov edi, ebx
dec edi
jmp 0x4090cf
cmp si, word [ebx*8 + 0x4f27e8]
jbe 0x4090be
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4090cf
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4f27ec]
call fcn.00408f4c
jmp 0x4090d4
cmp edi, dword [ebp - 8]
jae 0x409098
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x409183
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409183
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407788
push dword [ebp - 0x160]
push 0x4091bc
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407788
push dword [ebp - 0x164]
push 0x4091cc
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407788
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004079c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4091a8
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406b00
ret
Function at 0x409354
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409457
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x506b55
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x506b6e]
jne 0x4093a0
mov eax, esi
mov edx, 0x506b70
mov ecx, 0x55
call fcn.00407788
push 0x506b55
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409441
push 0x506b55
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406aa0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40940f
cmp byte [0x506b54], 0
je 0x4093d4
mov edx, esi
mov eax, ebx
call fcn.00409238
jmp 0x40940f
mov edx, esi
mov eax, ebx
call fcn.0040903c
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40940f
cmp dword [esi], 0
je 0x4093f8
mov eax, esi
mov edx, 0x409470
call fcn.004078e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040903c
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004078e0
push 0x506b55
call sub.kernel32.dll_EnterCriticalSection
mov word [0x506b6e], bx
push 0xaa
mov eax, dword [esi]
call fcn.004076fc
push eax
push 0x506b70
call sub.kernel32.dll_lstrcpynW
push 0x506b55
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40945e
lea eax, [ebp - 4]
call fcn.00406aa0
ret