joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014cc4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100357a8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10014d0a
cmp word [ebx], dx
jne 0x10014d0a
or byte [eax + edi + 0x28], 4
jmp 0x10014d0f
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x10014e72
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x10014e52
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10014d50
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10014d86
cmp eax, edx
jae 0x10014d94
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10014d2b
jmp 0x10014e72
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10014e4d
cmp dword [ebp - 0x18], 0
je 0x10014e4d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100357a8]
test byte [eax + edi + 0x28], 0x48
je 0x10014e23
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10014de7
mov word [esi], cx
jmp 0x10014e1e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100357a8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100357a8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100357a8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10014e72
pop eax
cmp word [ebp - 4], ax
jne 0x10014e33
cmp esi, ebx
jne 0x10014e33
mov word [esi], ax
jmp 0x10014e6f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100144e1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10014e72
push 0xd
pop eax
jmp 0x10014e2e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100357a8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10014e6c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10014e72
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100158d4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027e60
push 0x10027e58
push str.FlsAlloc
push 0x1f
call fcn.1001579c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015908
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024180]
call esi
jmp 0x1001590e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10015952
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027e70
push 0x10027e68
push str.FlsGetValue
push 0x21
call fcn.1001579c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10015989
push dword [ebp + 8]
mov ecx, esi
call dword [0x10024180]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10015991
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027e78
push 0x10027e70
push str.FlsSetValue
push 0x22
call fcn.1001579c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100159cb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10024180]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10019325
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100193c2
push ebx
push esi
call fcn.100192ee
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100180c3
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001936f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100193c1
push edi
push eax
call fcn.1001025c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001938f
call fcn.10010222
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100193c0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100180c3
add esp, 0x20
test eax, eax
jne 0x100193ae
push edi
call fcn.10010222
jmp 0x100193b6
push ebx
call fcn.10010222
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d056
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10011629
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001d0c5
cmp esi, dword [ebp - 4]
je 0x1001d0c0
cmp dword [ebp + 0xc], 0
je 0x1001d0c0
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001d09d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001cba8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001d0c7
xor eax, eax
inc eax
jmp 0x1001d0c7
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001d12c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10034064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.10011629
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.10011629
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001d1a3
cmp word [ecx], dx
je 0x1001d1a3
mov eax, dword [0x10028504]
push edi
dec eax
push eax
push 0x100283f0
call fcn.1001d0cb
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001d216
cmp word [eax], dx
je 0x1001d216
mov eax, dword [edi]
test eax, eax
je 0x1001d1c7
cmp word [eax], dx
je 0x1001d1c7
lea eax, [ebp - 0x10]
push eax
call fcn.1001caae
jmp 0x1001d1d0
lea eax, [ebp - 0x10]
push eax
call fcn.1001cb49
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001d240
mov eax, dword [0x100283ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100280e0
call fcn.1001d0cb
add esp, 0xc
test al, al
je 0x1001d240
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001d20b
cmp word [eax], di
je 0x1001d20b
lea eax, [ebp - 0x10]
push eax
call fcn.1001caae
pop ecx
jmp 0x1001d242
lea eax, [ebp - 0x10]
push eax
call fcn.1001cb49
jmp 0x1001d208
mov eax, dword [edi]
test eax, eax
je 0x1001d22d
cmp word [eax], dx
je 0x1001d22d
lea eax, [ebp - 0x10]
push eax
call fcn.1001ca63
pop ecx
jmp 0x1001d240
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001d30b
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001cf50
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001d30b
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001d30b
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001d30b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001d298
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10015ad1
test ebx, ebx
je 0x1001d306
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10015ad1
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001d30b
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001d30b
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001f9b2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001d30d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10005c93
leave
ret
Function at 0x1001fd21
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001fc9d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001fe90
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001fe90
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001fe45
jg 0x1001fd7d
test eax, eax
je 0x1001fe3b
push 1
push 0x1000
call fcn.1001423e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001fda0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001fe32
push 0x8000
push ebx
call fcn.1001fbce
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001fdc9
jg 0x1001fdc4
cmp ecx, 0x1000
jb 0x1001fdc9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10014022
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001fe0e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001fdc4
jl 0x1001fdf5
test ecx, ecx
jne 0x1001fdb6
push dword [ebp - 0xc]
push ebx
call fcn.1001fbce
push esi
call fcn.10010222
add esp, 0xc
xor ebx, ebx
jmp 0x1001fe9e
cmp byte [edi + 0x24], 0
je 0x1001fe25
cmp dword [edi + 0x20], 5
jne 0x1001fe25
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001fe30
mov ebx, dword [edi + 0x18]
jmp 0x1001fe32
xor ebx, ebx
push esi
call fcn.10010222
pop ecx
jmp 0x1001fe9e
test ecx, ecx
jg 0x1001fe07
jl 0x1001fe45
test eax, eax
jae 0x1001fe07
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100144e1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001fe65
cmp byte [edi + 0x1c], 0
je 0x1001fe07
jmp 0x1001fe96
push ebx
call fcn.1001d6e6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001fe07
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001fe9e
cmp byte [edi + 0x1c], 0
je 0x1001fe9b
mov ebx, dword [edi + 0x18]
jmp 0x1001fe9e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100144e1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10021450
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002147d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002147d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x405e50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405e69
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405ea4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405ea0
lea ebx, [ebx]
cmp esi, eax
jae 0x405ea4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405e90
cmp esi, eax
jb 0x405eaa
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406ef0
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x2054]
mov eax, 0x2054
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x52085a
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x2050], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor ebx, ebx
mov byte [ebp - 0x11], bl
lea eax, [ebp]
push eax
call fcn.00487b00
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 1
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x406f6c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
push ecx
call fcn.00487b80
xor al, al
jmp 0x407002
push ebx
mov edi, esi
lea eax, [ebp]
call fcn.00487be0
test eax, eax
je 0x406fa1
push str.Load_XML_fail___
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp]
push edx
call fcn.00487b80
xor al, al
jmp 0x407002
lea eax, [ebp - 0x18]
push eax
mov ecx, str.AMPV_CountryIndex
lea edi, [ebp]
call fcn.00487ef0
mov ecx, 0x649e50
test eax, eax
jne 0x406fde
mov eax, dword [ebp - 0x18]
cmp eax, 0x34
jne 0x406fd6
push str._koko_device_language_is_Korea__
call fcn.004918f0
add esp, 4
mov byte [ebp - 0x11], 1
jmp 0x406fec
push eax
push str._koko_device_language_is_NOT_Korea______index_:___d_
jmp 0x406fe4
push esi
push str.Fail_to_get_Country_Index_from___s___
call fcn.004918f0
add esp, 8
mov dword [ebp - 4], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
push ecx
call fcn.00487b80
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2050]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x2054
mov esp, ebp
pop ebp
ret
Function at 0x407940
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x5207e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov esi, edx
push 0x535a4c
lea ecx, [ebp - 0x1c]
call fcn.00405c00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00407e60
mov byte [ebp - 4], 1
mov ebx, 2
mov byte [ebp - 4], bl
test esi, esi
je 0x407b2d
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4079c0
sub eax, edx
sar eax, 1
je 0x407b2d
test edi, edi
je 0x407b2d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4079e1
sub eax, edx
sar eax, 1
je 0x407b2d
push str.UploadResult__.....
mov ecx, 0x649e50
call fcn.004918f0
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004fd670
push 0x800
push 0
lea ecx, [ebp + 0x800]
push ecx
call fcn.004fd670
add esp, 0x1c
lea edx, [ebp]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, 0x536d5c
lea edx, [ebp]
call fcn.00494c80
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
push str.response.xml
lea ecx, [ebp]
push ecx
push 0x535a74
lea edx, [ebp + 0x800]
call fcn.00404380
push esi
push str.http:___s
lea edx, [ebp - 0x14]
push edx
call fcn.004081a0
push edi
lea edi, [ebp - 0x14]
call fcn.00407e50
add esp, 0x28
push 1
push 1
push 0
lea esi, [ebp + 0x800]
push str.application_x_www_form_urlencoded
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
mov eax, edi
push eax
call fcn.004081c0
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.004be6e0
test eax, eax
jne 0x407aca
mov ecx, esi
call fcn.00407bc0
mov dword [ebp - 0x18], eax
jmp 0x407ad1
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 4], 1
push str.End_UploadResult___.....
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406150
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00406150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00406150
mov eax, 0x57
jmp 0x407b08
Function at 0x40bc30
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x520700
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], 1
xor ebx, ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 0x200]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bc90
sub eax, edx
sar eax, 1
jne 0x40bcba
push str.Fail_____Invalid_Parameter_in_CCmdOperator::FNT_OPEN_FILE____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
xor eax, eax
jmp 0x40bdf6
push 0x800
push 0
lea eax, [ebp + 0x800]
push eax
call fcn.004fd670
push 0x800
push 0
lea ecx, [ebp]
push ecx
call fcn.004fd670
add esp, 0x18
push 0
push 0x400
lea edx, [ebp + 0x800]
push edx
push edi
call fcn.004290d0
mov ecx, eax
call fcn.00480760
test eax, eax
je 0x40bd19
push 0x3ff
push edi
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004fa71b
add esp, 0x10
add esi, 0xa00
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bd24
sub eax, edx
sar eax, 1
je 0x40bd6b
push 0
push 0x400
lea ecx, [ebp]
push ecx
push esi
call fcn.004290d0
mov ecx, eax
call fcn.00480760
test eax, eax
je 0x40bd68
push 0x3ff
push esi
push 0x400
lea edx, [ebp]
push edx
call fcn.004fa71b
add esp, 0x10
lea ebx, [ebp]
push 1
push 0
push ebx
lea eax, [ebp + 0x800]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40bdec
mov dword [ebp - 0x54], 0x3c
push 0x38
push 0
lea ecx, [ebp - 0x50]
push ecx
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x50], pe_nt_image_headers32
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x48], str.openas
lea edx, [ebp + 0x800]
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x40bdec
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
xor eax, eax
jmp 0x40bdf6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
Function at 0x40be40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b7c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov esi, ecx
add esi, 0x200
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40be80
sub eax, edx
sar eax, 1
jne 0x40beb7
push str.Fail_____Invalid_Parameter_in_CCmdOperator::FNT_OPEN_FILE____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push esi
push str.IEXPLORE.EXE
push str.open
push 0
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
call edi
cmp eax, 0x20
jbe 0x40beec
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Fail___Open_IEXPLORE_in_CCmdOperator::FNT_OPEN_URL____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
push 1
push 0
push 0
push esi
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x40bed5
push esi
push str.Fail___Open___s__in_CCmdOperator::FNT_OPEN_URL____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 8
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bf60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b7a0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a4aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov esi, ecx
add esi, 0x200
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40bfa0
sub eax, edx
sar eax, 1
jne 0x40bfd7
push str.Fail_____Invalid_Parameter_in_CCmdOperator::FNT_BROWSE_DIR____
mov ecx, 0x649e50
call fcn.004918f0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jbe 0x40c01a
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov edx, 0x649e50
call fcn.004917b0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret