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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
push edi
push 0x44cadc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
jne 0x43439a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x43435d
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x434368
mov edi, 0x80004005
push edi
push 0x90
push 0x44ca8a
call fcn.004315c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x434385
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
test eax, eax
je 0x434392
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, edi
pop edi
pop ebx
leave
ret 0xc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44c5bc
push edi
call esi
test eax, eax
je 0x4343ec
push 0x44c5cc
push edi
call esi
push 0x44cabe
push edi
mov ebx, eax
call esi
push 0x44c5ec
push edi
mov dword [ebp - 0xc], eax
call esi
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x4343db
cmp dword [ebp - 0xc], 0
je 0x4343db
test eax, eax
jne 0x4343df
xor ebx, ebx
jmp 0x4343ec
lea eax, [ebp - 0x10]
push eax
call ebx
push 1
call dword [ebp - 0xc]
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x4026d0
push 1
push 0
mov esi, 0x450c2c
push esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x434488
push 0x10
push 0x4026c0
push esi
call fcn.00409228
add esp, 0xc
test eax, eax
je 0x434433
push 0x10
push 0x4026b0
push esi
call fcn.00409228
add esp, 0xc
test eax, eax
jne 0x43443d
mov dword [0x450c48], 1
cmp dword [ebp + 8], 0
je 0x43446c
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.0043409a
mov edi, eax
test edi, edi
js 0x434488
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 0
push dword [ebp - 8]
push eax
call dword [ecx + 0x54]
mov edi, eax
test edi, edi
js 0x434488
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
and dword [ebp - 4], 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x434488
mov ecx, dword [ebp - 8]
and dword [ebp - 8], 0
mov dword [eax], ecx
pop esi
test ebx, ebx
je 0x434378
push dword [ebp - 0x10]
call dword [ebp - 0x14]
test eax, eax
jne 0x434378
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x43499e
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x120
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
mov ebx, dword [ebp + 0x7c]
push edi
mov edi, dword [ebp + 0x78]
push 0x11c
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.00408720
add esp, 0xc
cmp dword [0x450c50], 0
jne 0x434aaf
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx eax, word [ebp + 0x64]
movzx ecx, word [ebp + 0x66]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0xac], 4
mov dword [0x450c54], eax
jne 0x434a21
mov dword [0x450c50], 1
jmp 0x434aaf
cmp dword [ebp - 0xac], 5
jne 0x434a6e
cmp dword [ebp - 0xa8], 0
jne 0x434a3f
mov dword [0x450c50], 2
jmp 0x434aaf
cmp dword [ebp - 0xa8], 1
jne 0x434a54
mov dword [0x450c50], 3
jmp 0x434aaf
xor eax, eax
cmp dword [ebp - 0xa8], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x450c50], eax
jmp 0x434aaf
cmp dword [ebp - 0xac], 6
jne 0x434aa5
cmp dword [ebp - 0xa8], 0
jne 0x434a8e
xor eax, eax
cmp byte [ebp + 0x6a], 1
setne al
add eax, 5
jmp 0x434a67
cmp dword [ebp - 0xa8], 1
jne 0x434aa5
xor eax, eax
cmp byte [ebp + 0x6a], 1
setne al
add eax, 7
jmp 0x434a67
mov dword [0x450c50], 9
mov eax, dword [0x450c50]
mov ecx, dword [ebp + 0x6c]
mov dword [edi], eax
mov eax, dword [0x450c54]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x70
leave
ret 8

Function at 0x434b50
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
mov dword [ebp - 0x10], ebx
call fcn.00434ad0
cmp dword [ebp - 0x14], ebx
je 0x434b8e
mov dword [esi], 1
jmp 0x434bc2
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
cmp eax, ebx
je 0x434bc2
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x434bc2
mov dword [esi], ebx
cmp dword [ebp - 0x10], ebx
pop esi
pop ebx
je 0x434bd1
push dword [ebp - 0x10]
call fcn.0043657e
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00408498
leave
ret 4
Function at 0x434c92
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x434cae
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x434cb7
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x434d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x434cee
cmp eax, 0x50
je 0x434ce6
cmp eax, 0xb7
jne 0x434cee
xor edi, edi
inc edi
jmp 0x434d80
cmp eax, 3
jne 0x434d70
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x434d69
cmp ax, 0x5c
jne 0x434d05
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x434cfd
test esi, esi
je 0x434d69
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00435838
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x434d80
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x434d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434d51
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x434d80
push edi
push 0x427
push 0x44cb8a
call fcn.004315c0
jmp 0x434d80
mov edi, 0x80070003
jmp 0x434d80
cmp eax, esi
jle 0x434d7e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x434de6
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
or dword [ebp - 4], 0xffffffff
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor ebx, ebx
call fcn.00434c1c
test eax, eax
je 0x434e76
test byte [ebp - 4], 7
push esi
push edi
mov edi, 0xffff
mov esi, 0x80070000
je 0x434e43
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x434e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434e35
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x434e43
push ebx
push 0x51c
jmp 0x434e6a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x434e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434e5e
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jns 0x434e74
push ebx
push 0x522
push 0x44cb8a
call fcn.004315c0
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x434e7e
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jne 0x434eda
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434ebf
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x434eda
push esi
push 0x11b
push 0x44cb8a
call fcn.004315c0
jmp 0x434f83
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x434ef9
mov esi, 0x8007000e
push esi
push 0x11f
jmp 0x434ecb
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x434f28
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434f1a
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x434f28
push esi
push 0x123
jmp 0x434f5b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x44c7f2
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x434f67
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x434f4f
and eax, ebx
or eax, edi
mov esi, eax
test esi, esi
jns 0x434f67
push esi
push 0x128
push 0x44cb8a
call fcn.004315c0
jmp 0x434f7a
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4353fa
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], edi
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x10]
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x435442
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43543c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x43544c
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 0x10]
jb 0x435409
jmp 0x43545c
push edi
push 0x34f
push 0x44cb8a
call fcn.004315c0
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x435464
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040b8c0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
mov ebx, dword [ebp + 0xfb0]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfa4]
xor esi, esi
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], esi
xor edi, edi
mov ecx, dword [ebp + 0xfa8]
xor edx, edx
cmp ecx, edx
jne 0x4354c4
cmp dword [ebp + 0xfac], edx
jne 0x4354c4
mov dword [ebp - 0x74], 0x1000
jmp 0x4354ec
mov eax, dword [ebp + 0xfac]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x4354e6
ja 0x4354dc
cmp ecx, 0x1000
jbe 0x4354e6
mov ecx, 0x1000
mov dword [ebp - 0x74], edx
jmp 0x4354e9
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x74], ecx
push edx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x435569
cmp dword [ebp - 0x74], 0
je 0x435521
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call fcn.004353fa
mov dword [ebp - 0x70], eax
test eax, eax
js 0x43554c
add edi, dword [ebp - 0x74]
adc esi, 0
cmp esi, dword [ebp + 0xfac]
ja 0x435543
jb 0x435539
cmp edi, dword [ebp + 0xfa8]
jae 0x435543
cmp dword [ebp - 0x74], 0
jne 0x4354a7
test ebx, ebx
je 0x43554c
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0xf98
leave
ret 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43557d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x70], eax
test eax, eax
jl 0x43558b
mov dword [ebp - 0x70], 0x80004005
push dword [ebp - 0x70]
push 0x36f
push 0x44cb8a
call fcn.004315c0
jmp 0x43554c
Function at 0x4355a0
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor eax, eax
xor esi, esi
xor edi, edi
cmp dword [ebp + 0x10], esi
sete al
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43567b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x4355e9
cmp eax, 0x50
je 0x4355e1
cmp eax, 0xb7
jne 0x4355e9
xor edi, edi
inc edi
jmp 0x43567b
cmp eax, 3
jne 0x43566b
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x435664
cmp ax, 0x5c
jne 0x435600
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4355f8
test esi, esi
je 0x435664
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.00435838
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
js 0x43567b
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x43567b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43564c
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jns 0x43567b
push edi
push 0x3b4
push 0x44cb8a
call fcn.004315c0
jmp 0x43567b
mov edi, 0x80070003
jmp 0x43567b
cmp eax, esi
jle 0x435679
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

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

Disassembly:
mov edi, edi
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435831
test al, 0x10
je 0x435831
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x43582e
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
ret 8

Function at 0x435838
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4358ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4358ff
cmp eax, 3
je 0x43587c
push esi
push ebx
call fcn.0043580c
test eax, eax
jne 0x4358ff
movzx eax, word [ebx]
push edi
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x4358a0
cmp ax, 0x5c
jne 0x435891
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x435889
test edi, edi
jne 0x4358b4
mov esi, 0x80070003
push esi
push 0x7d
push 0x44cbbe
call fcn.004315c0
jmp 0x4358fe
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.00435838
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x4358fe
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4358fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4358ea
xor esi, esi
inc esi
jmp 0x4358fe
test eax, eax
jle 0x4358f8
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x4358fe
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x436986
Capabilities:
Get http content length

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push 0x20000005
push dword [ebp + 8]
mov dword [ebp - 4], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4369da
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4369c5
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
jns 0x4369da
push esi
push 0x23
push 0x44cd6a
call fcn.004315c0
jmp 0x4369e6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x436c3c
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x23f0]
mov eax, 0x2470
call fcn.0040b8c0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x23ec], eax
mov eax, dword [ebp + 0x23f8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2404]
push ebx
mov ebx, dword [ebp + 0x23fc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2408]
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x240c]
push edi
mov edi, dword [ebp + 0x2400]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2410]
push 0x3c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2414]
pop esi
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408720
mov dword [ebp - 0x80], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x436cd1
lea eax, [ebp + 0x1fe0]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x38], esi
je 0x436ce7
lea ecx, [ebp + 0x22e8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x34], esi
je 0x436cf8
lea ecx, [ebp + 0x21e4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov eax, 0x801
cmp dword [ebp - 0x3c], esi
je 0x436d0e
lea ecx, [ebp + 0xfdc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x30], esi
je 0x436d1c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
push 0x90000000
push esi
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x436d69
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x436d47
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436d55
mov dword [ebp - 0x2c], 0x80004005
push dword [ebp - 0x2c]
push 0x61
push 0x44cd9e
call fcn.004315c0
jmp 0x436dfb
cmp ebx, esi
je 0x436d72
mov eax, dword [ebp - 0x74]
mov dword [ebx], eax
cmp edi, esi
je 0x436d89
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push edi
call fcn.0042fb1a
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436dfb
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x436d97
mov cx, word [ebp - 0x68]
mov word [eax], cx
cmp dword [ebp - 0x38], esi
je 0x436db1
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x38]
call fcn.0042fb1a
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436dfb
cmp dword [ebp - 0x34], esi
je 0x436dcb
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
call fcn.0042fb1a
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436dfb
cmp dword [ebp - 0x3c], esi
je 0x436de5
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x3c]
call fcn.0042fb1a
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436dfb
cmp dword [ebp - 0x30], esi
je 0x436dfb
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
call fcn.0042fb1a
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x23ec]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x23f0
leave
ret 0x20
Function at 0x4012fc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40130e
mov eax, dword [0x45f08b]
shl eax, 2
mov dword [0x45f08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00454200
pop edx
call fcn.00454164
call fcn.00454240
push 0
call fcn.0045564c
pop ecx
push 0x45f034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x45f093], eax
push 0
jmp fcn.00459490

Function at 0x40fb10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4637a8
cmp dword [edi], 0
jne 0x40fb8c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4637a4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45f3b0
mov ecx, 2
call fcn.00420978
mov edx, 0x40fae8
lea eax, [esi + 5]
call fcn.0040fb08
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0040fb08
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x40fb61
mov dword [0x4637a4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x413d18
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x413d51
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004221a0
jmp 0x413d5a
mov eax, ebx
mov edx, esi
call fcn.00422104
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x413d64
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x413d85
mov al, byte [esp]
jmp 0x413d87
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41440c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x414284
mov eax, dword [0x46351c]
cmp byte [eax], 0
je 0x414479
mov eax, dword [0x463520]
call fcn.00420d10
call fcn.004208e4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00412590
push eax
lea eax, [esp + 0x50]
push eax
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 0x4144c0
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4144af
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4633dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4636a4]
call fcn.004237cc
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret
Function at 0x414f74
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x414fd8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00422318
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.004122b0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414fdf
lea eax, [ebp - 0xc]
call fcn.004220b0
ret

Function at 0x4213ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45f8d8]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x421484
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x421464
xor eax, eax
push ebp
push 0x42145d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4214a0
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421464
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x45f8d8]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45f8d8], ax
mov esp, ebp
pop ebp
ret

Function at 0x421f34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x463ac4], 0
je 0x421f95
cmp word [0x463c98], 0xd7b2
jne 0x421f5d
cmp dword [0x463ca0], 0
jbe 0x421f5d
mov eax, 0x463c94
call dword [0x463cb0]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x421fbc
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x45f8e8], 0
jne 0x421fb1
push 0
push 0x45f940
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret