joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402520
Capabilities:
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x404d02
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
mov eax, dword [0x40a028]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x14]
call dword [0x4063fc]
mov dword [esp + 0x20], 0
cmp dword [esi], 0
mov ebx, 1
push 0
je 0x402572
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
push eax
push ecx
push 3
jmp 0x402578
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 4], eax
test eax, eax
jne 0x402589
xor ebx, ebx
mov ebp, ebx
test ebx, ebx
je 0x402658
mov ecx, dword [edi + 4]
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [esi + 8]
push eax
push 6
push ecx
call ebx
test eax, eax
je 0x4025cb
mov eax, dword [edi + 4]
push 4
lea edx, [esi + 4]
push edx
push 2
push eax
call ebx
test eax, eax
je 0x4025cb
mov edx, dword [edi + 4]
push 4
lea ecx, [esi + 0xc]
push ecx
push 3
push edx
call ebx
lea ecx, [esp + 0x10]
call dword [0x4063fc]
mov byte [esp + 0x20], 1
movzx eax, word [esi + 0x2c]
mov ecx, dword [esi + 0x10]
push eax
push ecx
lea edx, [esp + 0x18]
push str._s:_d
push edx
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
add esp, 0x10
push str._cgi_bin_HHTUpdCGI.cgi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator]
mov eax, dword [esi + 0x28]
add esi, 0x28
cmp dword [eax - 0xc], 0
je 0x40262b
push 0x40680c
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append]
push esi
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CSimpleStringT_wchar_t_1_::Append_1]
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 4]
push 0
push 0x80400000
push 0
push 0
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [edi + 8], eax
lea ecx, [esp + 0x10]
test eax, eax
jne 0x402652
xor ebp, ebp
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x14]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x402680
Capabilities:
Check http status code
Read data from internet
Receive data

Disassembly:
sub esp, 0x94
mov eax, dword [0x40a028]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
push 0x7c
mov esi, ecx
lea ecx, [esp + 0x24]
push 0
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], 0
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
add esp, 0xc
push 0
lea edx, [esp + 0x10]
push edx
push esi
push 0x20000013
push eax
mov dword [esp + 0x20], 4
call edi
test eax, eax
je 0x40280b
cmp dword [esi], 0xc8
jne 0x40271d
mov eax, dword [ebp + 8]
push 0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push 5
push eax
mov dword [esp + 0x20], 0x40
call edi
mov esi, eax
test esi, esi
jne 0x402724
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40280b
mov edi, dword [sym.imp.MSVCR90.dll__wtoi]
lea ecx, [esp + 0x1c]
push ecx
call edi
add esp, 4
test eax, eax
je 0x402825
lea edx, [esp + 0x1c]
push ebx
push edx
call edi
mov edi, eax
lea ebx, [edi + 1]
push ebx
call sub.mfc90u.dll_new__
push ebx
mov esi, eax
push 0
push esi
call sub.MSVCR90.dll_memset
mov ecx, dword [ebp + 8]
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40280a
mov edx, edi
and edx, 0x80000001
jns 0x402791
dec edx
or edx, 0xfffffffe
inc edx
je 0x40279a
mov byte [esi + edi - 1], 0
jmp 0x40279e
mov byte [esi + edi], 0
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
xor ecx, ecx
mov ebp, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.mfc90u.dll_new__
add esp, 4
push ebp
mov edi, eax
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call ebx
mov eax, dword [esp + 0x14]
push edi
push 0x406810
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Format]
push edi
call sub.mfc90u.dll_delete__
add esp, 0x10
test esi, esi
je 0x402806
push esi
call sub.mfc90u.dll_delete__
add esp, 4
mov eax, dword [esp + 0x18]
pop ebx
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00404302
add esp, 0x94
ret 8
mov eax, esi
jmp 0x40280b
Function at 0x404302
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a028]
jne 0x40430c
repz ret
jmp fcn.0040482e
Function at 0x42a0b6
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 4], 0
mov eax, 0x44b524
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 8], eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x42a0d9
mov eax, dword [ecx]
jmp 0x42a0e2
mov edx, dword [esi + 8]
test edx, edx
je 0x42a0e2
mov eax, dword [edx]
mov edx, dword [esi + 0xc]
mov dword [ebp + 8], eax
test edx, edx
je 0x42a0f1
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x42a131
mov eax, dword [edx + 0x10]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
and dword [ebp - 0x18], 0
lea edi, [ebp - 0x24]
and dword [ebp - 0x14], 0
mov dword [ebp - 0xc], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x42a13c
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x42a14b
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x42a104
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebx]
push str.download
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push 2
call main
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
add esp, 0x18
push eax
push edi
call main
test eax, eax
je 0x42a1cf
mov eax, dword [ebp - 4]
test al, 1
je 0x42a1cf
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
jne 0x42a1cf
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x42a1a4
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x42a1ab
mov esi, 0x80004005
push esi
push 0x568
push str.c:_agent_work138_s_src_burnengine_apply.cpp
call fcn.004038f5
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call main
add esp, 0xc
jmp 0x42a278
and dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0x4299a0
mov dword [ebp - 0x1c], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x42a22e
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x42a22e
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x42a22e
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x42a22e
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x42a221
cmp dx, cx
jne 0x42a22e
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x42a22e
push edi
push ebx
lea eax, [ebp - 0x24]
push eax
call main
jmp 0x42a261
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x18], 0x4298bb
push eax
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call main
mov esi, eax
test esi, esi
jns 0x42a278
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call main
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x401750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str.55222
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x4017ca
cmp dword [ebp - 0x118], 0
je 0x4017ca
jmp 0x40182c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x40182c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4380b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4380d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
call fcn.004011c0
mov eax, dword [ebp + 8]
mov dword [0x4380cc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
jmp 0x45bdf0
mov esp, ebp
pop ebp
ret

Function at 0x401830
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x19c
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x40184c
xor eax, eax
jmp 0x40192d
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
jne 0x401864
xor eax, eax
jmp 0x40192d
push ebp
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
add eax, 0x3c41
call fcn.00401300
mov esp, ebp
pop ebp
ret

Function at 0x401b10
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4380c0], 0x24e1
mov eax, dword [0x4380c0]
sub eax, 0x24e1
mov dword [0x4380c0], eax
mov ecx, 1
test ecx, ecx
je 0x401bbb
mov edx, dword [0x4380c0]
cmp edx, dword [ebp + 0xc]
jb 0x401b47
jmp 0x401bbb
cmp dword [0x4380c0], 0
jne 0x401b65
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x401b65
xor eax, eax
jmp 0x401bbb
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
mov ecx, dword [eax]
add ecx, dword [0x4380c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4380c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0xad9c
mov eax, dword [0x4380c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4380c0]
push eax
call fcn.004011d0
add esp, 8
mov ecx, dword [0x4380c0]
add ecx, 4
mov dword [0x4380c0], ecx
jmp 0x401b2d
mov esp, ebp
pop ebp
ret
Function at 0xb48cc0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x720000]
push edi
jmp 0xb48cda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb48ce1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb48cd0
mov eax, 1
add ebx, ebx
jne 0xb48cf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb48d04
jne 0xb48d23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb48d23
dec eax
add ebx, ebx
jne 0xb48d10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb48ce8
add ebx, ebx
jne 0xb48d1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb48d75
xor ecx, ecx
sub eax, 3
jb 0xb48d3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb48daa
sar eax, 1
mov ebp, eax
jmp 0xb48d46
add ebx, ebx
jne 0xb48d46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb48d14
inc ecx
add ebx, ebx
jne 0xb48d54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb48d14
add ebx, ebx
jne 0xb48d61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb48d56
jne 0xb48d72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb48d56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb48d94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb48d86
jmp 0xb48cd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb48d94
add edi, ecx
jmp 0xb48cd6
pop esi
mov edi, esi
mov ecx, 0x4df
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb48db2
cmp byte [edi], 7
jne 0xb48db2
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 0xb48db7
lea edi, [esi + 0x746000]
mov eax, dword [edi]
or eax, eax
je 0xb48e26
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x74acc8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x74ad34]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb48de4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x74ad3c]
or eax, eax
je 0xb48e20
mov dword [ebx], eax
add ebx, 4
jmp 0xb48e01
call dword [esi + 0x74ad38]
mov ebp, dword [esi + 0x74ad40]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0xb48e5a
sub esp, 0xffffff80
jmp 0x4039e0
Function at 0x401e80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x200
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x404]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x401edc
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edx, dword [0x44b890]
mov dword [ebp - 0x408], eax
add eax, 0x100
push eax
push 8
push edx
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ecx, dword [ebp - 0x408]
push 0
mov esi, eax
lea eax, [ebp - 0x408]
push eax
push ecx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp - 0x408]
mov ecx, dword [0x44b8a4]
lea eax, [esi + edx]
mov dword [eax], ecx
mov edx, dword [0x44b8a8]
push 0x44b894
push 0x44b8a4
mov dword [eax + 4], edx
call fcn.00401170
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
add eax, 8
mov dword [ebx], eax
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.0040281c
mov esp, ebp
pop ebp
ret

Function at 0x401f70
Capabilities:
Check os version
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea ebx, [ebp - 0x40c]
call fcn.00401e80
mov ebx, eax
test ebx, ebx
je 0x4020ee
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push 0x44b930
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402087
mov ax, word [0x44b930]
lea esi, [ebp - 0x408]
test ax, ax
je 0x401ff2
movzx ecx, ax
mov edx, 0x44b930
mov eax, esi
sub edx, eax
nop
movzx eax, word [edx + esi + 2]
mov word [esi], cx
add esi, 2
mov ecx, eax
test ax, ax
jne 0x401fe0
xor ecx, ecx
mov word [esi], cx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, esi
jmp 0x45b4d4
mov ecx, dword [ebp - 0x40c]
push 0
lea eax, [ebp - 0x40c]
push eax
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [0x44b890]
push ebx
push 0
push edx
call dword [sym.imp.KERNEL32.DLL_HeapFree]
call dword [sym.imp.KERNEL32.DLL_GetVersion]
cmp al, 5
jne 0x4020d6
call fcn.00401510
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040281c
mov esp, ebp
pop ebp
ret
push 1
call fcn.00401830
add esp, 4
test al, al
jne 0x4020ee
push 0
call fcn.00401830
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040281c
mov esp, ebp
pop ebp
ret
Function at 0x405d80
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.00406030
mov byte [esp], al
cmp byte [esp], 0
jne 0x405f0c
test edi, edi
je 0x405f0c
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405e43
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405e1e
cmp edi, 0xffffffff
je 0x405ddf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405ddf
mov byte [esp], 0
jmp 0x405f0c
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405e1e
test ebx, ebx
jne 0x405e14
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402694
test eax, eax
jne 0x405e14
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405f0c
call 0x406074
dec ebp
test ebp, ebp
jg 0x405dc4
cmp edi, 0xffffffff
je 0x405e43
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405e41
mov byte [esp], 0
jmp 0x405f0c
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405d8e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x405e43
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405f7c
mov edx, eax
mov ebx, dword [0x44d8f0]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405eaa
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405ea8
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405eaa
xor edi, edi
cmp byte [esp], 0
je 0x405ed3
mov ebx, dword [esi]
test bl, 1
jne 0x405eec
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x405eb0
mov byte [esp + 1], 1
jmp 0x405eec
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x405ed3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405e5d
cmp byte [esp], 0
je 0x405f0c
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 0x406a74
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44d050], 0
je 0x406adb
cmp word [0x44d33c], 0xd7b2
jne 0x406a9d
cmp dword [0x44d344], 0
jbe 0x406a9d
mov eax, 0x44d338
call dword [0x44d354]
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
mov eax, 0x406b08
call fcn.00407460
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44a02e], 0
jne 0x406af7
push 0
push 0x44a9ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408c80
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 0x408de5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406d0c
cmp si, word [0x44a9f8]
jb 0x408d18
cmp si, word [0x44abf8]
ja 0x408d18
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408d18
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x44a9f8]
jae 0x408cf2
mov edi, ebx
dec edi
jmp 0x408d13
cmp si, word [ebx*8 + 0x44a9f8]
jbe 0x408d02
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408d13
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x44a9fc]
call fcn.00408b90
jmp 0x408d18
cmp edi, dword [ebp - 8]
jae 0x408cdc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408dc7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408dc7
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.004077c0
push dword [ebp - 0x160]
push 0x408e00
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004077c0
push dword [ebp - 0x164]
push 0x408e10
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004077c0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004079f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408dec
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406d6c
ret
Function at 0x408f98
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 0x40909b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44fb80
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x44fb98]
jne 0x408fe4
mov eax, esi
mov edx, 0x44fb9a
mov ecx, 0x55
call fcn.004077c0
push 0x44fb80
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x409085
push 0x44fb80
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406d0c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409053
cmp byte [0x44fb7c], 0
je 0x409018
mov edx, esi
mov eax, ebx
call fcn.00408e7c
jmp 0x409053
mov edx, esi
mov eax, ebx
call fcn.00408c80
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x409053
cmp dword [esi], 0
je 0x40903c
mov eax, esi
mov edx, 0x4090b4
call fcn.00407918
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408c80
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407918
push 0x44fb80
call sub.kernel32.dll_EnterCriticalSection
mov word [0x44fb98], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040772c
push eax
push 0x44fb9a
call sub.kernel32.dll_lstrcpynW
push 0x44fb80
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4090a2
lea eax, [ebp - 4]
call fcn.00406d0c
ret