joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405438
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.004056e8
mov byte [esp], al
cmp byte [esp], 0
jne 0x4055c4
test edi, edi
je 0x4055c4
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4054fb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x4054d6
cmp edi, 0xffffffff
je 0x405497
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405497
mov byte [esp], 0
jmp 0x4055c4
mov ebx, dword [esi]
cmp ebx, 1
jg 0x4054d6
test ebx, ebx
jne 0x4054cc
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402694
test eax, eax
jne 0x4054cc
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x4055c4
call 0x40572c
dec ebp
test ebp, ebp
jg 0x40547c
cmp edi, 0xffffffff
je 0x4054fb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4054f9
mov byte [esp], 0
jmp 0x4055c4
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405446
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x4054fb
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405634
mov edx, eax
mov ebx, dword [0x44c8ec]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405562
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405560
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405562
xor edi, edi
cmp byte [esp], 0
je 0x40558b
mov ebx, dword [esi]
test bl, 1
jne 0x4055a4
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x405568
mov byte [esp + 1], 1
jmp 0x4055a4
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402694
cmp ebx, eax
jne 0x40558b
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405515
cmp byte [esp], 0
je 0x4055c4
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 0x406128
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x44c050], 0
je 0x40618f
cmp word [0x44c338], 0xd7b2
jne 0x406151
cmp dword [0x44c340], 0
jbe 0x406151
mov eax, 0x44c334
call dword [0x44c350]
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, 0x4061bc
call fcn.00406adc
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x44902e], 0
jne 0x4061ab
push 0
push 0x4499ba
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4082fc
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 0x408461
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004063c0
cmp si, word [0x4499f8]
jb 0x408394
cmp si, word [0x449bf8]
ja 0x408394
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408394
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4499f8]
jae 0x40836e
mov edi, ebx
dec edi
jmp 0x40838f
cmp si, word [ebx*8 + 0x4499f8]
jbe 0x40837e
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40838f
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4499fc]
call fcn.0040820c
jmp 0x408394
cmp edi, dword [ebp - 8]
jae 0x408358
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408443
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408443
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.00406e3c
push dword [ebp - 0x160]
push 0x40847c
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406e3c
push dword [ebp - 0x164]
push 0x40848c
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406e3c
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00407074
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408468
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406420
ret
Function at 0x408614
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 0x408717
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x44eb78
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x44eb90]
jne 0x408660
mov eax, esi
mov edx, 0x44eb92
mov ecx, 0x55
call fcn.00406e3c
push 0x44eb78
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408701
push 0x44eb78
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.004063c0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4086cf
cmp byte [0x44eb74], 0
je 0x408694
mov edx, esi
mov eax, ebx
call fcn.004084f8
jmp 0x4086cf
mov edx, esi
mov eax, ebx
call fcn.004082fc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4086cf
cmp dword [esi], 0
je 0x4086b8
mov eax, esi
mov edx, 0x408730
call fcn.00406f94
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.004082fc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406f94
push 0x44eb78
call sub.kernel32.dll_EnterCriticalSection
mov word [0x44eb90], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406da8
push eax
push 0x44eb92
call sub.kernel32.dll_lstrcpynW
push 0x44eb78
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40871e
lea eax, [ebp - 4]
call fcn.004063c0
ret
Function at 0x40894c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004064a4
xor eax, eax
push ebp
push 0x408b71
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40898c
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x4089a6
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406da8
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408b5b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b80
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408a75
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408b80
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408a75
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408bbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408a75
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408bbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408a75
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408bf0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408a75
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408c24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408b5b
xor eax, eax
push ebp
push 0x408b54
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408758
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408ae4
mov eax, dword [ebp - 0x10]
call fcn.004043e4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e00
jmp 0x408b2f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408c64
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408b2f
mov eax, dword [ebp - 0x10]
call fcn.004043e4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408c64
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406e00
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b5b
cmp dword [ebp - 8], 0
je 0x408b4a
mov eax, dword [ebp - 8]
call fcn.00404400
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408b78
lea eax, [ebp - 4]
call fcn.004063c0
ret
Function at 0x408e58
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004064a4
xor eax, eax
push ebp
push 0x408f18
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406e3c
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406fec
mov eax, dword [ebx]
call fcn.00408d20
test al, al
jne 0x408ef5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406e3c
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00406fec
mov eax, dword [ebx]
call fcn.00408d20
test al, al
jne 0x408ef5
mov eax, ebx
call fcn.004063c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408f1f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00406420
lea eax, [ebp - 4]
call fcn.004063c0
ret

Function at 0x409800
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x417b54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x417bad
test eax, edx
je 0x417bb0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x417b6b
movzx eax, word [eax]
sub eax, ecx
jmp 0x417b92
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x417b93
add ecx, 4
js 0x417b83
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x417b90
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x417b92
xor eax, eax
ret
test eax, eax
je 0x417bbc
test edx, edx
jne 0x417b5c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x41c5d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41c611
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406518
jmp 0x41c61a
mov eax, ebx
mov edx, esi
call fcn.00406770
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41c624
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41c646
movzx eax, word [esp]
jmp 0x41c648
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x41d31c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x41d441
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0041d124
mov esi, eax
mov eax, dword [0x44bb34]
cmp byte [eax], 0
je 0x41d3e9
mov eax, dword [0x44b9cc]
call fcn.00404708
call fcn.00404538
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41d2ec]
call fcn.00407d7c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x41d45c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x41d425
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x44b994]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x44ec40]
call fcn.00407e40
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d448
lea eax, [ebp - 4]
mov edx, dword [0x41d2ec]
call fcn.00407d88
ret

Function at 0x41ecb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406860
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004097e0
mov edi, eax
cmp edi, 0x104
jbe 0x41ec5b
mov eax, edi
add eax, eax
call fcn.004043e4
mov esi, eax
jmp 0x41ec5d
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004097e0
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x41ec96
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x41ec80
mov eax, esp
cmp esi, eax
je 0x41eca3
mov eax, esi
call fcn.00404400
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x41ecdc
cmp bl, 0
je 0x41ecd8
cmp bl, 0x41
jl 0x41ecd3
cmp bl, 0x5a
jg 0x41ecd3
or bl, 0x20
xor al, bl
inc esi
jmp 0x41ecb7
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x41ec1c

Function at 0x41f4c4
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00406e3c
add esp, 0x800
pop ebx
ret
Function at 0x41f8f4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.004063c0
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.00406da8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x41f939
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00406518
jmp 0x41f952
mov edx, ebx
dec edx
mov eax, esi
call fcn.00406f14
push ebx
mov eax, dword [esi]
call fcn.00406da8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x445234
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004064a4
mov eax, dword [ebp - 8]
call fcn.004064a4
xor eax, eax
push ebp
push 0x44538c
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x445359
push dword fs:[edx]
mov dword fs:[edx], esp
push 0xa
mov eax, dword [ebp - 8]
call fcn.00406da8
push eax
mov eax, dword [0x44ec40]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x4452a1
mov ecx, 0x4453a8
mov dl, 1
mov eax, dword [0x4142c4]
call fcn.0041d460
call fcn.00405bc8
push ebx
mov eax, dword [0x44ec40]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
jne 0x4452c9
mov ecx, 0x4453f8
mov dl, 1
mov eax, dword [0x4142c4]
call fcn.0041d460
call fcn.00405bc8
push esi
call sub.kernel32.dll_LockResource
mov edi, eax
push ebx
mov eax, dword [0x44ec40]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00406da8
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x44532f
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, 0x44544c
mov dl, 1
mov eax, dword [0x4142c4]
call fcn.0041d49c
call fcn.00405bc8
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push edi
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_FreeResource
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x445371
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445393
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406420
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x444098], 1
mov dword [0x444094], 1
mov dword [0x444090], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x44400c], eax
mov eax, dword [0x4440a4]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x4440b8]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x4440a0]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x4386cc], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056
Function at 0x403ea6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x38], 0
mov dword [s.st_ctime], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
jne 0x403ece
mov eax, 0
jmp 0x404012
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
lea edx, [ebp - 0x34]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._stat
test eax, eax
je 0x403f0d
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp + 8], str.Error_opening_file_for_reading
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dbg.command_packet_create_error_response
jmp 0x404012
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x439bfb
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_fopen_s]
call eax
mov eax, dword [ebp - 0x38]
test eax, eax
jne 0x403f59
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp + 8], str.Error_opening_file_for_reading
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dbg.command_packet_create_error_response
jmp 0x404012
mov eax, dword [s.st_gid]
mov dword [esp + 8], 0x47
mov dword [esp + 4], str.drivers_command_commands_standard.h
mov dword [esp], eax
call dbg.safe_malloc_internal
mov dword [s.st_mtime], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [s.st_gid]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 1
mov eax, dword [s.st_mtime]
mov dword [esp], eax
call sym._fread
mov edx, dword [s.st_gid]
cmp eax, edx
jne 0x403fc5
mov eax, dword [s.st_gid]
mov edx, eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp + 8], edx
mov edx, dword [s.st_mtime]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.command_packet_create_download_response
mov dword [s.st_ctime], eax
jmp 0x403fe9
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp + 8], str.There_was_an_error_reading_the_file
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dbg.command_packet_create_error_response
mov dword [s.st_ctime], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 8], 0x4e
mov dword [esp + 4], str.drivers_command_commands_standard.h
mov eax, dword [s.st_mtime]
mov dword [esp], eax
call dbg.safe_free_internal
mov eax, dword [s.st_ctime]
leave
ret
Function at 0x404014
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
jne 0x40402e
mov eax, 0
jmp 0x4040ba
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x439c48
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_fopen_s]
call eax
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x404077
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp + 8], str.Error_opening_file_for_writing
mov dword [esp + 4], 0xffff
mov dword [esp], eax
call dbg.command_packet_create_error_response
jmp 0x4040ba
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._fwrite
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [ebp + 0xc]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp], eax
call dbg.command_packet_create_upload_response
leave
ret

Function at 0x406738
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
nop
leave
ret