joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f4b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1001f68
push 0
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
jmp 0x1001f6b
and eax, 0x10
ret 4

Function at 0x100263f
Capabilities:
Shutdown system

Disassembly:
test byte [esp + 4], 2
jne 0x1002650
call fcn.01002613
cmp eax, 2
jne 0x100268e
test byte [esp + 4], 4
jne 0x1002673
push 4
push 0x40
push 0
push 0x1001251
push 0x522
push 0
call fcn.01007b75
cmp eax, 6
jne 0x100268e
cmp word [0x100aa64], 0
jne 0x1002689
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x100268e
call fcn.01007b75
ret 4

Function at 0x1002b34
Capabilities:
Create directory

Disassembly:
push edi
mov edi, dword [esp + 8]
mov cl, byte [edi]
test cl, cl
je 0x1002b99
push ebx
push esi
lea esi, [edi + 1]
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x3a
jne 0x1002b57
cmp byte [edi + 2], 0x5c
jne 0x1002b57
lea esi, [edi + 3]
jmp 0x1002b92
cmp cl, 0x5c
jne 0x1002b92
cmp al, cl
jne 0x1002b92
push 2
lea esi, [edi + 2]
pop ebx
jmp 0x1002b92
cmp byte [esi], 0x5c
jne 0x1002b89
cmp byte [esi - 1], 0x3a
je 0x1002b89
test ebx, ebx
je 0x1002b7a
dec ebx
jmp 0x1002b89
and byte [esi], 0
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
cmp byte [esi], 0
jne 0x1002b68
pop esi
pop ebx
pop edi
ret 4

Function at 0x1002eaf
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
sub esp, 0x104
push ebp
push esi
mov esi, dword [0x100ac40]
xor ebp, ebp
cmp esi, ebp
push edi
mov edi, esi
je 0x1002f03
push ebx
mov ebx, dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [0x100b884], ebp
jne 0x1002ef2
cmp dword [0x100b490], ebp
jne 0x1002ef2
push 0x80
push dword [esi]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.kernel32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call ebx
push edi
call ebx
cmp esi, ebp
mov edi, esi
jne 0x1002ecd
pop ebx
cmp dword [0x100b880], ebp
je 0x1002f53
cmp dword [0x100b884], ebp
jne 0x1002f53
cmp dword [0x100b490], ebp
jne 0x1002f53
push 0x100ac44
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
test byte [0x100b494], 0x20
je 0x1002f3e
lea eax, [esp + 0xc]
push eax
call fcn.01005b71
push 0x1001284
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
lea eax, [esp + 0xc]
push eax
call fcn.01007b75
cmp word [0x100aa64], 1
je 0x1002f6a
cmp dword [0x100b880], ebp
je 0x1002f6a
call fcn.01007b75
pop edi
pop esi
mov dword [0x100b880], ebp
pop ebp
add esp, 0x104
ret
Function at 0x1002f7a
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov esi, dword [esp + 0x118]
push edi
xor edi, edi
xor ebp, ebp
push edi
lea eax, [esp + 0x14]
push 0x1001348
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esp + 0x118]
inc edi
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
lea eax, [esp + 0x10]
push eax
push esi
call fcn.01005b32
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryA]
je 0x1003015
cmp edi, 0x190
jl 0x1002f8f
push esi
push 0
push 0x1001344
push dword [esp + 0x124]
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x1003006
xor ebp, ebp
push esi
inc ebp
call dword [sym.imp.kernel32.dll_DeleteFileA]
push 0
push esi
call ebx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x104
ret 8
xor ebp, ebp
push ebp
push esi
call ebx
test eax, eax
je 0x1002fde
xor eax, eax
inc eax
mov dword [0x100b880], eax
mov ebp, eax
jmp 0x1003006

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

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
call dword [sym.imp.kernel32.dll_lstrlenA]
add eax, 0x14
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
mov esi, eax
xor ebp, ebp
cmp esi, ebp
jne 0x1003ea0
push ebp
push 0x10
push ebp
push ebp
push 0x4b5
push ebp
call fcn.01007b75
call fcn.01003547
mov dword [0x100aa5c], eax
xor eax, eax
jmp 0x1003f07
push edi
push ebx
push esi
call dword [sym.imp.kernel32.dll_lstrcpyA]
push 0x10013c4
push esi
call fcn.01005b32
push ebp
push 0x4000080
push 1
push ebp
push ebp
push 0x40000000
push esi
call dword [sym.imp.kernel32.dll_CreateFileA]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x1003efa
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1003efa
test al, 0x10
je 0x1003efa
xor eax, eax
mov dword [0x100aa5c], ebp
inc eax
jmp 0x1003f06
call fcn.01003547
mov dword [0x100aa5c], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x1004809
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor ebx, ebx
inc ebx
push esi
mov edi, ebx
call fcn.01005bca
test eax, eax
jne 0x1004823
mov eax, ebx
jmp 0x100487e
cmp dword [0x100ac3c], 0
jne 0x1004870
test byte [0x100b898], bl
jne 0x1004870
push 6
push 0
push 0x100383d
push dword [0x100aa4c]
mov dword [0x100ae64], esi
push 0x7d3
push dword [0x100b4a4]
call fcn.01007b75
sub eax, 6
je 0x100486e
dec eax
je 0x1004884
sub eax, 0x832
jne 0x1004870
mov dword [0x100ac3c], ebx
mov edi, ebx
push 0x80
push esi
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
xor edi, edi
jmp 0x100487c

Function at 0x1005a5e
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x1005a85
inc esi
mov al, byte [esi]
test al, al
je 0x1005a7e
cmp al, 0x22
jne 0x1005a73
cmp byte [esi], 0x22
jne 0x1005a96
jmp 0x1005a95
cmp al, 0x20
jle 0x1005a96
inc esi
cmp byte [esi], 0x20
jg 0x1005a89
jmp 0x1005a96
cmp al, 0x20
jg 0x1005a9c
inc esi
mov al, byte [esi]
test al, al
jne 0x1005a91
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x1005ab6
movzx eax, word [ebp - 0x14]
jmp 0x1005ab9
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.kernel32.dll_ExitProcess]

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005bdd
xor eax, eax
jmp 0x1005be5
shr eax, 4
not eax
and eax, 1
ret 4
Function at 0x1005d22
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xb0
and dword [ebp + 0x74], 0
cmp dword [0x100a2cc], 0xfffffffe
mov dword [ebp + 0x6c], 0xc
jne 0x1005e09
and dword [0x100a2cc], 0
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x1005e09
cmp dword [ebp - 0x28], 1
jne 0x1005e09
cmp dword [ebp - 0x34], 4
jne 0x1005e09
cmp dword [ebp - 0x30], 0xa
jae 0x1005e09
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x1005e09
lea eax, [ebp + 0x70]
push eax
push 0x20019
push 0
push 0x1001488
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005e09
push edi
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x1001251
push dword [ebp + 0x70]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push dword [ebp + 0x70]
mov edi, eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x1005e09
lea eax, [ebp + 0x74]
push eax
lea eax, [ebp + 0x5c]
push eax
call fcn.01005c1c
test eax, eax
je 0x1005e09
and dword [ebp + 0x74], 0x3ff
cmp dword [ebp + 0x74], 1
je 0x1005dff
cmp dword [ebp + 0x74], 0xd
jne 0x1005e09
mov dword [0x100a2cc], 1
mov eax, dword [0x100a2cc]
add ebp, 0x78
leave
ret

Function at 0x1007083
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10070be
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100709b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10070da
dec esi
je 0x10070d3
dec esi
jne 0x10070df
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc
Function at 0x1007b75
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1007b84
pop dword [ebp - 0x40]
mov eax, 0xf5c690c9
add eax, 0xb39eabb
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x68a5c6e6
add dword [ebp - 0x50], 0xe5ac7e65
mov dword [ebp - 0x4c], 0x1c843c61
sub dword [ebp - 0x4c], 0xea50f01c
mov dword [ebp - 0x48], 0x94c6fa75
add dword [ebp - 0x48], 0xb78549b9
mov dword [ebp - 0x44], 0x43ec7782
add dword [ebp - 0x44], 0xbc13887e
lea eax, [ebp - 0x50]
push eax
mov eax, 0xa84a6f1c
sub eax, 0xa74a5dc8
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xe5767181
sub dword [ebp - 0x50], 0x7104082b
mov dword [ebp - 0x4c], 0x9b39e0fe
sub dword [ebp - 0x4c], 0x59cd7f89
mov dword [ebp - 0x48], 0xeafcd22
sub dword [ebp - 0x48], 0xab4060b6
mov dword [ebp - 0x44], 0x686c387d
add dword [ebp - 0x44], 0x9793c783
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0xa67c6e01
sub eax, 0xa57c5d41
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3c88e
push 0
call eax
mov ecx, 0x991cfbee
sub ecx, 0x991c9ede
mov ebx, eax
mov edi, 0xc1802a84
sub edi, 0xc07b9a84
add edi, dword [ebp - 0x40]
mov edx, 0x1ef311cb
sub edx, 0xe87961dd
xor dword [ebp - 0x3c], esi
mov esi, dword [edi]
xor dword [ebp - 0x24], edx
sub esi, edx
add dword [ebp - 0x24], eax
mov dword [ebx], esi
add dword [ebp - 0x1c], edi
add ebx, 0xc3619fba
sub ebx, 0xc3619fb6
add edi, 0x949405e8
add edi, 0x6b6bfa1c
loop 0x1007ca6
add eax, 0x16713
xor ebx, ebx
add ebx, eax
add eax, 0x3fa27bd8
add eax, 0xc05d842d
mov ecx, 0xb0a7ae88
sub ecx, 0xafa7ae88
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4019c3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019d6
push esp
mov dword [ebp - 0x24], 0x4016fe
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a75
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a56
pop ebp
ret 0x10
Function at 0x43d993
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp eax, 0
jne 0x43d9b6
mov eax, 0
jmp 0x43da33
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00414c41
add esp, 8
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x43d9fc
and eax, 0x50
cmp eax, 0
jne 0x43d9fc
mov dword [ebp - 0x10], 1
jmp 0x43da03
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp eax, 0
je 0x43da30
push str.hb_fsFileExists
push 0x1a8
push str.C:xharbour_sourcecommonhbfsapi.c
mov eax, dword [ebp - 4]
push eax
call fcn.00414a6a
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4401b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x440205
push str.hb_getenv
push 0x5c
push str.C:xharbour_sourcecommonhbgete.c
mov eax, dword [ebp - 8]
push eax
call fcn.00414a14
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4439e9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push str.hb_verPlatform
push 0x137
push str.C:xharbour_sourcecommonhbver.c
push 0x100
call fcn.00414a14
add esp, 0x10
mov dword [ebp - 4], eax
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp eax, 0
je 0x443cd4
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa0], 0x47779c
mov dword [ebp - 0xa4], 0x47779c
mov eax, dword [ebp - 0x9c]
cmp eax, 0
je 0x443a84
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, 0
je 0x443a84
mov dword [ebp - 0xa0], str.__Wine_
mov eax, dword [ebp - 0x88]
cmp eax, 3
jg case.default.0x443a93
jmp dword [eax*4 + 0x4766b4]
cmp dword [ebp - 0x94], 4
jne 0x443ac3
cmp dword [ebp - 0x90], 0xa
jae 0x443ac3
mov dword [ebp - 0xa4], 0x47777f
jmp case.default.0x443a93
cmp dword [ebp - 0x94], 4
jne 0x443aec
cmp dword [ebp - 0x90], 0xa
jne 0x443aec
mov dword [ebp - 0xa4], 0x47777b
jmp case.default.0x443a93
mov dword [ebp - 0xa4], 0x477777
jmp case.default.0x443a93
cmp dword [ebp - 0x94], 6
jne 0x443b17
mov dword [ebp - 0xa4], 0x47779c
jmp case.default.0x443a93
cmp dword [ebp - 0x94], 5
jne 0x443b40
cmp dword [ebp - 0x90], 2
jb 0x443b40
mov dword [ebp - 0xa4], str._Server_2003___XP_x64
jmp case.default.0x443a93
cmp dword [ebp - 0x94], 5
jne 0x443b69
cmp dword [ebp - 0x90], 1
jne 0x443b69
mov dword [ebp - 0xa4], 0x47775d
jmp case.default.0x443a93
cmp dword [ebp - 0x94], 5
jne 0x443b85
mov dword [ebp - 0xa4], str._2000
jmp case.default.0x443a93
mov dword [ebp - 0xa4], 0x477753
jmp case.default.0x443a93
mov dword [ebp - 0xa4], str._32s
jmp case.default.0x443a93
mov dword [ebp - 0xa4], 0x47774a
mov eax, dword [ebp - 0x8c]
and eax, 0xffff
movzx eax, ax
push eax
mov eax, dword [ebp - 0x90]
push eax
mov eax, dword [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xa0]
push eax
mov eax, dword [ebp - 0xa4]
push eax
push str.Windows_s_s__lu._lu._04u
push 0x100
mov eax, dword [ebp - 4]
push eax
call fcn.004438c6
add esp, 0x20
lea eax, [ebp - 0x84]
cmp eax, 0
je 0x443cea
lea eax, [ebp - 0x84]
push eax
call fcn.0043b129
add esp, 4
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 0
jmp 0x443c27
inc dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xac]
movsx eax, byte [edx + eax]
cmp eax, 0
je 0x443c64
cmp eax, 0x20
je 0x443c21
cmp eax, 9
je 0x443c21
cmp eax, 0xa
je 0x443c21
cmp eax, 0xd
je 0x443c21
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xac]
cmp byte [edx + eax], 0
je 0x443cb1
push 0xff
push 0x47772f
mov eax, dword [ebp - 4]
push eax
call fcn.0043ca81
add esp, 0xc
push 0xff
mov eax, dword [ebp - 0xa8]
mov edx, dword [ebp - 0xac]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.0043ca81
add esp, 0xc
push str.hb_verPlatform
push 0x21f
push str.C:xharbour_sourcecommonhbver.c
mov eax, dword [ebp - 0xac]
push eax
call fcn.00414a6a
add esp, 0x10
jmp 0x443cea
push str.Windows
push 0x100
mov eax, dword [ebp - 4]
push eax
call fcn.004438c6
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x44d5fa
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov eax, dword [ebp + 8]
movzx edx, word [eax + 0x10]
and edx, 0xff
cmp edx, 0x3c
je 0x44d77b
cmp edx, 0x3d
je 0x44d77b
cmp edx, 0x3e
je 0x44d77b
cmp edx, 0x3f
je 0x44d77b
cmp edx, 0x40
je 0x44d77b
cmp edx, 0x41
je 0x44d77b
cmp edx, 0x42
je 0x44d77b
cmp edx, 0x48
je 0x44d77b
cmp edx, 0x49
je 0x44d77b
cmp eax, 0
je 0x44d77b
cmp edx, 0x1f
je 0x44d77b
cmp edx, 0x1e
je 0x44d77b
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x34
je 0x44d698
mov eax, 1
jmp 0x44d780
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
jmp 0x44d75d
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x35
jne 0x44d717
mov eax, dword [ebp - 4]
cmp eax, 0
je 0x44d70d
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x1e
jne 0x44d6f7
mov eax, dword [ebp - 4]
lea eax, [eax + 0x10]
movzx edx, word [eax]
and edx, 0xff00
or edx, 0x18
mov word [eax], dx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp eax, edx
jne 0x44d6cd
mov eax, 1
jmp 0x44d780
mov eax, dword [ebp - 4]
cmp eax, 0
jne 0x44d73e
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x1e
jne 0x44d73e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp word [eax + 0xe], 0
jne 0x44d755
mov edx, dword [ebp + 8]
mov word [edx + 0xe], 0xffff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
cmp eax, 0
je 0x44d77b
movzx eax, word [eax + 0x10]
and eax, 0xff
cmp eax, 0x1f
jne 0x44d6ac
mov eax, 0
mov esp, ebp
pop ebp
ret
Function at 0x458000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [0x4ab91c]
cmp eax, edx
jae 0x45802f
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab920]
test byte [eax + edx*8 + 4], 1
jne 0x458041
mov dword [0x4a6448], 9
or eax, 0xffffffff
jmp 0x458214
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x45805c
xor eax, eax
jmp 0x458214
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab920]
test byte [eax + edx*8 + 4], 0x20
je 0x458085
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0045a980
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab920]
test byte [eax + edx*8 + 4], 0x80
je 0x458163
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x45814f
lea edi, [ebp - 0x411]
jmp 0x4580d1
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x4580cc
inc dword [ebp - 4]
mov eax, edi
inc edi
mov byte [eax], 0xd
mov eax, edi
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
cmp eax, 0x400
jge 0x4580f2
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x4580b9
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab920]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x458144
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
mov edx, ecx
cmp eax, edx
jge 0x45814f
jmp 0x4581a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x4581a9
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x4580b1
jmp 0x4581a9
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab920]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4581a0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x4581a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x45820e
cmp dword [ebp - 0x10], 0
je 0x4581da
cmp dword [ebp - 0x10], 5
jne 0x4581cb
mov dword [0x4a6448], 9
jmp 0x4581d5
mov eax, dword [ebp - 0x10]
push eax
call fcn.0045a3b0
pop ecx
or eax, 0xffffffff
jmp 0x458214
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4ab920]
test byte [eax + edx*8 + 4], 0x40
je 0x4581ff
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4581ff
xor eax, eax
jmp 0x458214
mov dword [0x4a6448], 0x1c
or eax, 0xffffffff
jmp 0x458214
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458280
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4582a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045a3b0
pop ecx
or eax, 0xffffffff
jmp 0x4582c5
mov eax, ebx
and eax, 1
je 0x4582c3
test byte [ebp + 0xc], 2
je 0x4582c3
mov dword [0x4a6448], 0xd
or eax, 0xffffffff
jmp 0x4582c5
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x459f80
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x459fb2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.00459dc0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00454e70
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x459fe5
push 1
call fcn.00457ff0
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.00459dc0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x4ab918], eax
mov dword [0x4ab914], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a020
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x45a057
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x45a043
inc eax
mov esi, eax
cmp byte [ebx], 0x3d
je 0x45a055
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x45a03e
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00454e70
pop ecx
mov edi, eax
mov dword [0x4aba20], eax
test eax, eax
jne 0x45a07a
push 1
call fcn.00457ff0
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x45a0a9
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x45a084
inc eax
mov esi, eax
cmp byte [ebx], 0x3d
je 0x45a0a7
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x45a09a
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x45a07f
mov byte [edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret