joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403740
Capabilities:
Accept command line arguments
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
mov eax, 0x4135dc
push ebx
mov ebx, 0x412518
push esi
call fcn.0040c5d4
call sub.KERNEL32.DLL_GetCommandLineA
mov esi, eax
test esi, esi
je 0x40377a
xor eax, eax
mov al, byte [esi]
cmp eax, 0x22
jne 0x40377a
lea eax, [esi + 1]
mov edx, 0x22
call fcn.0040bddc
mov esi, eax
test esi, esi
je 0x40382a
mov edx, 0x4110f9
mov eax, esi
call fcn.0040be20
mov esi, eax
test eax, eax
je 0x40379d
mov eax, ebx
mov edx, esi
call fcn.0040be4c
mov byte [ebp - 1], 0
xor eax, eax
xor esi, esi
jmp 0x40381a
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
je 0x4037b4
mov byte [ebp - 1], 1
cmp ecx, 0x22
jne 0x4037ba
inc esi
test esi, 1
jne 0x403819
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
jne 0x4037db
test eax, eax
je 0x4037e5
xor edx, edx
mov dl, byte [ebx + eax - 1]
cmp edx, 0x20
je 0x4037e5
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x403819
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x4037f5
cmp edx, 0x53
jne 0x403819
mov dl, byte [ebx + eax + 2]
test dl, dl
je 0x403806
xor ecx, ecx
mov cl, dl
cmp ecx, 0x20
jne 0x403819
mov dword [0x411050], 1
mov byte [0x411054], 1
jmp 0x403821
inc eax
mov dl, byte [ebx + eax]
test dl, dl
jne 0x4037a7
cmp byte [ebp - 1], 0
jne 0x40382a
mov byte [ebx], 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
mov dword [0x4135d4], eax
push 0x64
push ebx
call sub.USER32.DLL_LoadIconA
mov dword [0x412918], eax
push 0x65
push dword [0x4135d4]
call sub.USER32.DLL_LoadBitmapA
mov dword [0x41291c], eax
lea eax, [ebp - 0xc]
call fcn.004054ac
push 0x400
push 0x412118
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x412118
push str.sfxname
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov edx, 0x412118
mov eax, 0x4135c0
call fcn.00404aec
lea eax, [ebp - 0x24]
call fcn.00404054
lea eax, [ebp - 0x3c]
call fcn.00404054
push 0
push 0x401183
lea edx, [ebp - 0x24]
push 0
mov dword [0x412d20], edx
lea ecx, [ebp - 0x3c]
push str.STARTDLG
push ebx
mov dword [0x412d24], ecx
call sub.USER32.DLL_DialogBoxParamA
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.00404078
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404078
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405520
xor ecx, ecx
mov dword [0x412d24], ecx
mov dword [0x412d20], ecx
cmp dword [0x41186c], 0
jne 0x40391d
cmp dword [0x411878], 0
jne 0x40391d
mov ecx, 4
mov edx, dword [0x411040]
xor eax, eax
call fcn.004018cb
cmp byte [0x41103d], 0
je 0x40392b
call fcn.004026ac
mov eax, 0x412088
mov ecx, 0x80
xor edx, edx
call fcn.0040bd4c
cmp dword [0x41104c], 0
jle 0x40394f
mov eax, dword [0x411040]
call fcn.0040bcd0
push dword [0x412918]
call sub.GDI32.DLL_DeleteObject
mov eax, dword [0x41291c]
test eax, eax
je 0x403969
push eax
call sub.GDI32.DLL_DeleteObject
cmp dword [0x4135b4], 0
jne 0x40398a
cmp dword [0x41186c], 0
je 0x40398a
mov eax, 0x4135b4
mov edx, 0xff
call fcn.00409750
mov dword [0x41186c], 2
push dword [0x4135b4]
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4040a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, eax
push esi
push edi
cmp byte [ebx + 0x14], 0
mov edi, edx
mov esi, ecx
jne 0x4040c5
push 0
call sub.OLE32.DLL_OleInitialize
call sub.COMCTL32.DLL_InitCommonControls
mov byte [ebx + 0x14], 1
mov byte [ebx + 0x15], 0
push 0
push esi
call sub.USER32.DLL_ShowWindow
mov edx, edi
mov eax, ebx
call fcn.004041fc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov dword [ebx + 0x10], ecx
push eax
push esi
call sub.USER32.DLL_GetWindowRect
push 2
lea edx, [ebp - 0x10]
push edx
push esi
call sub.USER32.DLL_GetParent
push eax
push 0
call sub.USER32.DLL_MapWindowPoints
mov eax, dword [ebx + 4]
test eax, eax
je 0x40410b
push eax
call sub.USER32.DLL_DestroyWindow
push ebx
push dword [ebx]
push 0
push esi
call sub.USER32.DLL_GetParent
push eax
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
add ecx, 0xfffffffe
push ecx
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x40000000
push 0
push str.RarHtmlClassName
push 0
call sub.USER32.DLL_CreateWindowExA
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
je 0x40415c
push 5
push edi
call sub.USER32.DLL_ShowWindow
push dword [ebx + 4]
call sub.USER32.DLL_UpdateWindow
cmp byte [ebx + 0x15], 0
jne 0x4041d9
mov eax, dword [ebx + 4]
test eax, eax
je 0x404174
push eax
call sub.USER32.DLL_DestroyWindow
xor edx, edx
mov dword [ebx + 4], edx
push 5
push esi
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp + 8]
call fcn.0040bdcc
add eax, eax
lea eax, [eax + eax*2]
add eax, 0x100
call fcn.0040bcbc
mov edi, eax
mov edx, dword [ebp + 8]
mov eax, edi
call fcn.0040be4c
mov edx, edi
mov eax, ebx
call fcn.00404838
test al, al
jne 0x4041b5
mov edx, edi
mov eax, ebx
call fcn.00404870
mov edx, edi
mov eax, ebx
call fcn.004046b0
mov ebx, eax
mov eax, edi
call fcn.0040bcd0
test ebx, ebx
je 0x4041d9
push ebx
push esi
call sub.USER32.DLL_SetWindowTextA
mov eax, ebx
call fcn.0040bcd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4043f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov esi, eax
xor eax, eax
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
jmp 0x404456
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x2710
ja 0x404467
push 0
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
call sub.USER32.DLL_PeekMessageA
test eax, eax
je 0x404456
push 0
push 0
push 0
lea edx, [esp + 0x14]
push edx
call sub.USER32.DLL_GetMessageA
lea ecx, [esp + 8]
push ecx
call sub.USER32.DLL_TranslateMessage
lea eax, [esp + 8]
push eax
call sub.USER32.DLL_DispatchMessageA
push esp
push esi
mov edx, dword [esi]
call dword [edx + 0x48]
test eax, eax
jl 0x40440e
cmp dword [esp], 0
je 0x40440e
xor ebx, ebx
cmp dword [esp], 0
je 0x4044b1
lea eax, [esp + 4]
push eax
push 0x4117f4
mov edx, dword [esp + 8]
push edx
mov ecx, dword [edx]
call dword [ecx]
test eax, eax
jl 0x4044b1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 0x20]
test eax, eax
jl 0x4044a7
push edi
mov ecx, dword [esp + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
setge bl
and ebx, 1
mov eax, dword [esp + 4]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, ebx
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x404fbc
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7ac
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
mov esi, edx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.004051b8
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push esi
call sub.USER32.DLL_GetWindowRect
lea edx, [ebp - 0x44]
push edx
push esi
call sub.USER32.DLL_GetClientRect
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x34]
inc ecx
sub ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
inc eax
sub eax, dword [ebp - 0x38]
test bl, bl
mov dword [ebp - 0x18], eax
je 0x405053
cmp byte [ebp + 8], 0
jne 0x405053
mov eax, dword [ebp - 0x3c]
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x38]
imul dword [ebp - 0x10]
cdq
mov edi, 0x64
idiv edi
add ecx, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
push 0x206
push eax
push ecx
push 0
push 0
push 0
push esi
call sub.USER32.DLL_SetWindowPos
cmp byte [ebp + 8], 0
jne 0x405091
push 0x400
lea eax, [ebp - 0x444]
push eax
push esi
call sub.USER32.DLL_GetWindowTextA
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x444]
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 4]
call fcn.00404e40
lea edx, [ebp - 0x444]
push edx
push esi
call sub.USER32.DLL_SetWindowTextA
push 8
call sub.USER32.DLL_GetSystemMetrics
sub dword [ebp - 0x18], eax
push 5
push esi
call sub.USER32.DLL_GetWindow
mov edi, eax
mov dword [ebp - 0x1c], edi
xor esi, esi
jmp 0x40519f
push 0x400
lea eax, [ebp - 0x844]
push eax
push edi
call sub.USER32.DLL_GetWindowTextA
cmp byte [ebp - 0x844], 0
je 0x4050f0
push 1
push dword [ebp - 8]
lea ecx, [ebp - 0x844]
lea edx, [ebp - 0x844]
mov eax, dword [ebp - 4]
call fcn.00404e40
lea edx, [ebp - 0x844]
push edx
push edi
call sub.USER32.DLL_SetWindowTextA
test bl, bl
je 0x40518f
lea ecx, [ebp - 0x854]
push ecx
push edi
call sub.USER32.DLL_GetWindowRect
mov eax, dword [ebp - 0x854]
sub eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x14]
sar edx, 1
jns 0x405118
adc edx, 0
sub eax, edx
mov ecx, 0x64
imul dword [ebp - 0xc]
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x18]
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x84c]
sub eax, dword [ebp - 0x854]
inc eax
imul dword [ebp - 0xc]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x848]
sub eax, dword [ebp - 0x850]
inc eax
imul dword [ebp - 0x10]
cdq
push ecx
mov ecx, 0x64
idiv ecx
pop ecx
push 0x204
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x20]
push ecx
push 0
push edi
call sub.USER32.DLL_SetWindowPos
push 2
push edi
call sub.USER32.DLL_GetWindow
mov edi, eax
cmp edi, dword [ebp - 0x1c]
je 0x4051af
inc esi
test edi, edi
je 0x4051af
cmp esi, 0x200
jl 0x4050af
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405388
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ac
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x254]
test edi, edi
je 0x4053cf
mov edx, edi
mov eax, ebx
call fcn.0040be4c
mov eax, ebx
call fcn.0040bdcc
inc eax
add ebx, eax
mov edx, edi
mov eax, ebx
call fcn.0040be4c
mov eax, ebx
call fcn.0040bdcc
inc eax
add ebx, eax
mov eax, 0x85
call fcn.00402904
mov edx, eax
mov eax, ebx
call fcn.0040be4c
mov eax, ebx
call fcn.0040bdcc
inc eax
add ebx, eax
mov edx, 0x411560
mov eax, ebx
call fcn.0040be4c
mov eax, ebx
call fcn.0040bdcc
inc eax
mov ecx, 0x4c
add ebx, eax
lea eax, [ebp - 0x54]
xor edx, edx
mov byte [ebx], 0
call fcn.0040bd4c
mov dword [ebp - 0x54], 0x4c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x50], eax
mov edx, dword [0x4135d4]
mov dword [ebp - 0x4c], edx
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], 0x400
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, esi
call fcn.00405aa0
cmp esi, eax
jne 0x405468
lea edx, [ebp - 0x654]
push edx
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 0x1080c
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
jne 0x405498
call sub.COMDLG32.DLL_CommDlgExtendedError
cmp eax, 0x3002
jne 0x405498
mov byte [esi], 0
lea eax, [ebp - 0x54]
push eax
call sub.COMDLG32.DLL_GetOpenFileNameA
mov ebx, eax
test ebx, ebx
setne al
and eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406350
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.0040525c
test eax, eax
je 0x406376
test ebx, ebx
je 0x406376
cmp word [ebx], 0
je 0x406376
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x40637e
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x406391
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.004066b0
xor eax, eax
jmp 0x4063ac
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x4063a0
cmp eax, 3
jne 0x4063a7
mov eax, 2
jmp 0x4063ac
mov eax, 1
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040525c
test eax, eax
je 0x40664f
test ebx, ebx
je 0x40664f
cmp word [ebx], 0
je 0x40664f
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x406684
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.0040525c
test eax, eax
je 0x4066a6
test ebx, ebx
je 0x4066a6
cmp word [ebx], 0
je 0x4066a6
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x4066b0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.0040525c
test eax, eax
je 0x4066dd
test ebx, ebx
je 0x4066dd
cmp word [ebx], 0
je 0x4066dd
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x4066ec
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x408154
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, 0x413130
push ebp
mov ebp, edx
cmp dword [edi + 4], 0
mov esi, ecx
mov ebx, eax
jne 0x40816e
call fcn.0040811c
mov eax, ebp
jmp 0x408186
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x40818e
test al, 7
jne 0x408172
cmp esi, 8
jb 0x408217
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x408197
xor edx, edx
jmp 0x408231
mov ecx, ebx
xor cl, byte [eax + edx]
and ecx, 0xff
shr ebx, 8
mov ecx, dword [edi + ecx*4]
xor ecx, ebx
mov ebx, ecx
inc edx
cmp esi, edx
ja 0x40821b
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40abf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x15], 0
mov esi, ecx
je 0x40ac13
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x40ac24
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x40ac33
or dword [ebp - 8], 2
call fcn.0040525c
test eax, eax
je 0x40ac5f
test esi, esi
je 0x40ac5f
cmp word [esi], 0
je 0x40ac5f
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x40ac78
push 0
push 0x8000000
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x40ac91
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x40ac91
mov dword [ebx + 0xc18], 1
xor eax, eax
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne dl
mov dword [ebx + 0xc], eax
and edx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 9], dl
cmp byte [ebp - 9], 0
je 0x40acfb
mov dword [ebx + 4], edi
test esi, esi
je 0x40acc6
lea eax, [ebx + 0x416]
mov edx, esi
call fcn.0040c4dc
jmp 0x40accf
mov word [ebx + 0x416], 0
cmp dword [ebp - 4], 0
je 0x40ace2
lea eax, [ebx + 0x16]
mov edx, dword [ebp - 4]
call fcn.0040be4c
jmp 0x40acf1
lea edx, [ebx + 0x16]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040c478
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.0040ade0
mov al, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40aeb4
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, ecx
test esi, esi
mov edi, eax
mov dword [esp], edx
je 0x40af9d
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40aeef
dec eax
je 0x40aed9
dec eax
je 0x40aee5
jmp 0x40aeef
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40aeef
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
cmp dword [edi + 0xc], 0
je 0x40af41
xor ebp, ebp
cmp esi, ebp
jle 0x40af5d
push 0
lea eax, [esp + 8]
push eax
mov edx, esi
sub edx, ebp
cmp edx, 0x4000
jge 0x40af14
mov ecx, esi
sub ecx, ebp
jmp 0x40af19
mov ecx, 0x4000
push ecx
mov eax, dword [esp + 0xc]
add eax, ebp
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
je 0x40af5d
add ebp, 0x4000
cmp esi, ebp
jg 0x40aefb
jmp 0x40af5d
push 0
lea eax, [esp + 8]
push eax
push esi
push dword [esp + 0xc]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne bl
and ebx, 1
test bl, bl
jne 0x40af99
cmp byte [edi + 0x14], 0
je 0x40af99
cmp dword [edi + 0xc], 0
jne 0x40af99
lea ebp, [edi + 0x16]
mov eax, 0x4135b4
mov edx, ebp
call fcn.004095c0
test al, al
jne 0x40aeef
mov ecx, ebp
mov eax, 0x4135b4
xor edx, edx
call fcn.004095a8
jmp 0x40af99
mov byte [edi + 8], 1
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40b088
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, eax
push esi
push edi
push ecx
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x40b0af
cmp esi, 0x4e20
jle 0x40b0a5
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [esp + 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40b100
mov eax, ebx
call fcn.0040b3c8
test al, al
je 0x40b0e7
cmp esi, 0x4e20
jle 0x40b0e7
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.0040b088
jmp 0x40b103
cmp dword [ebx + 0xc], 1
jne 0x40b0fb
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x40b0fb
xor eax, eax
jmp 0x40b103
or eax, 0xffffffff
jmp 0x40b103
mov eax, dword [esp]
pop edx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
cmp byte [0x4116ec], 0
jne 0x40c421
call fcn.0040bfe8
mov dword [0x4116e8], eax
inc byte [0x4116ec]
call fcn.0040bfe8
sub eax, dword [0x4116e8]
cmp eax, 0x64
jle 0x40c45d
cmp dword [0x41186c], 0
je 0x40c458
mov eax, 0x4135b4
mov edx, 0xff
call fcn.00409750
mov eax, 0x4135b4
mov edx, 0xff
call fcn.00409748
call fcn.004029a4
ret
Function at 0x401300
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
push dword [ebp - 4]
mov byte [ebp - 8], 0
push dword [ebp - 8]
push dword [ebp - 8]
call fcn.00401360
add esp, 0xc
mov ecx, eax
call fcn.004035b0
push 0x10
push eax
lea ecx, [ebx + 8]
call fcn.00403e90
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x1337
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.0040d3e3
add esp, 0xc
test eax, eax
jne 0x40641a
push ebx
call fcn.0040cbe8
mov esi, eax
add esp, 4
test esi, esi
js 0x40641a
jne 0x4063cc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 1]
push 0x4191fc
push eax
call fcn.004093ba
mov edi, eax
add esp, 8
test edi, edi
jne 0x4063ef
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
mov byte [edi + esi], 0
call fcn.0040d3e3
add esp, 0xc
push ebx
push esi
push 1
push edi
call fcn.0040d6f0
add esp, 0x10
cmp eax, esi
je 0x406428
push edi
call fcn.004092bd
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00404b90
push edi
mov esi, eax
call fcn.004092bd
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 2
push 0
push ebx
mov dword [ebp - 4], ecx
call fcn.0040d3e3
add esp, 0xc
test eax, eax
jne 0x40681a
push ebx
call fcn.0040cbe8
mov esi, eax
add esp, 4
test esi, esi
js 0x40681a
jne 0x4067cc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 1]
push 0x4191fc
push eax
call fcn.004093ba
mov edi, eax
add esp, 8
test edi, edi
jne 0x4067ef
lea eax, [edi - 2]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push ebx
mov byte [edi + esi], 0
call fcn.0040d3e3
add esp, 0xc
push ebx
push esi
push 1
push edi
call fcn.0040d6f0
add esp, 0x10
cmp eax, esi
je 0x406828
push edi
call fcn.004092bd
add esp, 4
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.00407250
push edi
mov esi, eax
call fcn.004092bd
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409c7a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x409cb9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409cb9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409cb9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409cb9
cmp dword [ecx + 0x74], 0xe
jbe 0x409cb9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4118e3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411759

Function at 0x418a10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418a3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418a3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403e4e
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403ffe
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x403f4c
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403eef
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x403f32
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x403f06
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403f21
test al, 0x40
je 0x403f18
mov ecx, dword [edi + 0x20]
jmp 0x403f1f
test al, 0x80
je 0x403f32
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x403f32
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403ebe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret