joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040e4
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, dword [esp + 0x1c]
cmp dword [esi + 0x14], 0x10
mov dword [esp + 0x10], ebp
jb 0x404109
mov esi, dword [esi]
mov dword [esp + 0x18], esi
push esi
shr edi, 2
push edi
push str._x_and__p
call fcn.004043b8
add esp, 0xc
test edi, edi
je 0x404164
mov ebp, esi
mov esi, edi
push 4
lea eax, [esp + 0x20]
push ebp
push eax
call fcn.00406aa0
imul ecx, dword [esp + 0x28], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x1c], eax
sub esi, 1
jne 0x404123
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40418d
sub eax, 1
je 0x404183
sub eax, 1
jne 0x40419b
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
pop ecx
ret

Function at 0x4041c1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipCursor]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x4476a0], eax
pop edi
pop esi
ret

Function at 0x4066ce
Capabilities:
Parse pe header

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

Function at 0x40d08a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd28
push 0x41bd20
push str.FlsAlloc
push 0x1e
call fcn.0040cf4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d0be
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
jmp 0x40d0c4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d108
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bd38
push 0x41bd30
push str.FlsGetValue
push 0x20
call fcn.0040cf4b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d13f
push dword [ebp + 8]
mov ecx, esi
call dword [0x419184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4062f0
Capabilities:
Link many functions at runtime

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x110
mov ebp, eax
mov dword [esp + 0x104], edx
mov dword [esp + 0x108], ebx
test eax, eax
jne 0x4064b2
mov ebp, 0x406218
mov edx, esp
xor ah, ah
xor bl, bl
mov al, byte [ebp]
test al, al
je 0x40632d
cmp al, 0x3b
jne 0x4064c0
inc ebp
test ah, ah
jne 0x406341
mov byte [edx], 0x2e
inc edx
mov byte [edx], 0x64
inc edx
mov byte [edx], 0x6c
inc edx
mov byte [edx], 0x6c
inc edx
mov eax, esp
push eax
mov byte [edx], 0
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x46e26c], eax
test eax, eax
je 0x4064ee
push 1
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 2
mov ebx, eax
mov dword [esp + 0x104], eax
mov eax, dword [0x46e26c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 3
mov edx, dword [0x46e26c]
push edx
mov dword [0x46e270], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 4
mov ecx, dword [0x46e26c]
push ecx
mov dword [0x46e254], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 5
mov esi, dword [0x46e26c]
push esi
mov dword [0x473120], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 6
mov edi, dword [0x46e26c]
push edi
mov dword [0x473118], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x47311c], eax
mov eax, 3
mov edi, dword [esp + 0x104]
call fcn.00427540
mov esi, eax
push edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x4063fb
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x4063e3
pop edi
test ebx, ebx
je 0x40649b
cmp dword [0x46e270], 0
je 0x40649b
cmp dword [0x46e254], 0
je 0x40649b
mov eax, dword [esp + 0x108]
lea esi, [esp + 0x10c]
cmp byte [eax + 2], 0
setne al
mov edx, edi
movzx ebx, al
mov eax, ebp
mov edi, dword [esp + 0x108]
call dword [esp + 0x100]
lea esi, [esp + 0x10c]
mov eax, dword [esp + 0x104]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp byte [eax], 0
jne 0x40649b
mov eax, dword [esp + 0x108]
cmp byte [eax], 0x12
je 0x40651e
mov eax, 3
mov edi, dword [esp + 0x104]
call fcn.00427540
mov esi, eax
push edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x40649a
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x406482
pop edi
call fcn.00406280
mov eax, dword [esp + 0x104]
add esp, 0x110
pop ebp
pop edi
pop esi
pop ecx
ret
cmp byte [eax], 0
je 0x406312
jmp 0x406317
cmp al, 0x2f
jae 0x4064d2
cmp al, 0x2e
je 0x4064e2
inc edx
inc ebp
mov byte [edx - 1], al
jmp 0x40631d
ja 0x4064d8
mov ah, bl
jmp 0x4064c8
cmp al, 0x5c
je 0x4064d4
cmp al, 0x3a
je 0x4064d4
jmp 0x4064c8
mov ah, 1
inc edx
inc ebp
mov byte [edx - 1], al
jmp 0x40631d
mov eax, esp
push eax
mov eax, 2
call fcn.00427540
push eax
push 0x406210
mov ecx, dword [esp + 0x110]
push ecx
call fcn.00465f50
add esp, 0x10
mov eax, ecx
add esp, 0x110
pop ebp
pop edi
pop esi
pop ecx
ret
mov edi, 0x473114
mov esi, eax
xor eax, eax
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
add esp, 0x110
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x417620
Capabilities:
Enumerate pe sections

Disassembly:
cmp dword [esp + 4], 0x400
jbe 0x41759c
mov dword [esp + 4], 0x400
call fcn.0041cda0
mov ecx, dword [esp + 4]
mov esi, dword [esp]
mov edi, dword [0x474b18]
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov edx, dword [esp + 4]
mov eax, dword [0x474b18]
mov byte [edx + eax], 0
mov edx, dword [esp + 6]
sar edx, 0x10
call fcn.00414a80
mov dword [0x473a44], eax
cmp eax, 0xffffffff
je 0x4175f9
add esp, 0xc
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
mov edx, dword [0x4752a0]
push edx
push 0
jmp fcn.004257c0
mov edi, dword [0x474b18]
push edi
mov ebp, dword [0x475224]
push ebp
push 0
jmp fcn.004257c0
mov eax, 0xe
jmp 0x4176a0
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 0xc
mov word [esp + 8], ax
cmp dword [0x473a44], 0xffffffff
jne 0x4175eb
lea ebx, [esp + 4]
mov edx, esp
mov eax, 1
call fcn.0041cbf0
test al, al
jne 0x41758a
mov ecx, dword [0x47528c]
push ecx
push 1
jmp fcn.004257c0

Function at 0x417660
Capabilities:
Enumerate pe sections

Disassembly:
call fcn.0041c9c0
test al, al
jne fcn.00417630
mov ax, word [0x474fae]
cmp ax, 1
je 0x417696
cmp ax, 3
jne fcn.00417620
call fcn.0041d4f0
mov eax, 0x417500
call fcn.0041c750
test eax, eax
jl 0x4176e1
call dword [eax*4 + fcn.00417510]
ret
call fcn.0041d4f0
mov eax, 0x16
mov eax, 0xe
call fcn.00417880
push eax
mov eax, dword [0x4752a8]
push eax
push 1
jmp fcn.004257c0
Function at 0x4255a0
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x400
mov cl, al
mov ebp, edx
mov esi, esp
test al, 2
jne 0x42569a
mov edx, ebp
mov eax, esi
call fcn.004219e0
mov edx, eax
mov eax, 0x425596
call fcn.00421970
mov esi, eax
test cl, 1
je 0x425604
mov edx, eax
mov eax, 0x425590
call fcn.00421970
mov dx, word [0x474fae]
mov esi, eax
cmp dx, 0x10
jne 0x4256ad
mov ebx, dword [0x47517c]
mov edx, eax
mov eax, ebx
call fcn.00421970
mov esi, eax
mov eax, 1
call fcn.004207c0
call fcn.0040e580
xor eax, eax
xor edx, edx
call fcn.0041d2b0
call fcn.00410d90
call fcn.00416850
call fcn.00401270
mov dword [0x47474c], edx
test byte [0x474fbe], 8
jne 0x42563f
call fcn.0041d590
and byte [0x474fbe], 0xfe
test byte [0x474fc0], 2
je 0x42566f
mov eax, esp
lea eax, [eax]
lea edx, [edx]
lea eax, [eax]
test byte [0x474fba], 8
je 0x4256ec
call fcn.0041ea30
mov eax, esp
mov edx, dword [0x474b18]
call fcn.00421970
mov eax, 1
add esp, 0x400
pop ebp
pop edi
pop esi
pop ecx
ret
mov edx, esp
mov eax, dword [0x4753c0]
call fcn.00421970
mov esi, eax
jmp 0x4255b8
cmp dx, 0xb
je 0x4256e1
call fcn.0041c740
test eax, eax
jne 0x4256c1
call fcn.0041d4f0
call fcn.0041c740
push eax
call fcn.0041c730
push eax
mov eax, dword [0x475174]
push eax
push esi
call fcn.00421d20
add esp, 0x10
jmp 0x425602
mov ebx, dword [0x475198]
jmp 0x4255f9
test cl, 4
jne 0x42574c
mov ecx, dword [0x474b20]
mov edi, dword [0x475190]
test ecx, ecx
je 0x425736
test byte [ecx + 0x10], 0x20
je 0x425730
mov eax, 0x425590
mov edx, esi
mov ebx, dword [ecx + 8]
call fcn.00421970
lea edx, [ebx + 0x68]
push edx
mov esi, dword [ebx + 0x14]
push esi
push edi
push eax
call fcn.00421d20
mov edi, dword [0x475188]
mov esi, eax
add esp, 0x10
mov ecx, dword [ecx]
test ecx, ecx
jne 0x425701
call fcn.00441380
call fcn.004412a0
call fcn.0041e780
mov eax, esp
call fcn.00441310
mov edx, dword [0x474b20]
xor bl, bl
test edx, edx
je 0x42577c
test byte [edx + 0x10], 1
je 0x425763
call fcn.0040d7a0
test byte [edx + 0x10], 2
je 0x42576e
call fcn.0042eef0
test byte [edx + 0x10], 4
je 0x425776
mov bl, 1
mov edx, dword [edx]
test edx, edx
jne 0x425758
call fcn.0041ea30
test bl, bl
je 0x425797
cmp ebp, dword [0x47522c]
je 0x425797
call fcn.0043f350
call fcn.0040ad60
test byte [0x474fba], 2
je 0x42568a
xor eax, eax
add esp, 0x400
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x42f1b0
Capabilities:
Check os version

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
push ebp
sub esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
xor ebp, ebp
cmp eax, 0x80000000
jae 0x42f1d0
cmp al, 5
jae 0x42f1dc
mov eax, ebp
add esp, 4
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
call fcn.0042f160
test eax, eax
je 0x42f1d0
mov edi, esi
sub ecx, ecx
dec ecx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea eax, [ecx + 0x10]
call fcn.00466980
mov edx, eax
mov edi, eax
mov dword [esp], eax
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov esi, 0x42f059
lea edi, [edx + ebx]
push edi
mov al, byte [esi]
mov byte [edi], al
cmp al, 0
je 0x42f233
mov al, byte [esi + 1]
add esi, 2
mov byte [edi + 1], al
add edi, 2
cmp al, 0
jne 0x42f21b
pop edi
mov eax, 0x42f025
call fcn.0042f070
test eax, eax
je 0x42f247
mov ebp, 0xfffffffa
mov eax, dword [esp]
call fcn.00466af0
mov eax, ebp
add esp, 4
pop ebp
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x44d940
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ecx
push esi
sub esp, 8
mov esi, eax
mov ecx, edx
lea ebx, [esp + 4]
call fcn.0045a980
test al, al
je 0x44d96d
cmp byte [esp + 4], 6
jne 0x44d984
mov ebx, esp
mov edx, ecx
mov eax, esi
call fcn.0044d9d0
test al, al
jne 0x44d976
xor eax, eax
add esp, 8
pop esi
pop ecx
pop ebx
ret
mov ebx, dword [esp]
mov edx, ecx
mov eax, esi
call fcn.0044da20
jmp 0x44d96f
push ecx
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.DLL_GetDlgItem]
mov esi, eax
test eax, eax
je 0x44d96f
push eax
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
test eax, eax
jle 0x44d96d
lea ecx, [eax + 1]
mov eax, ecx
call fcn.004220e0
mov ebx, eax
test eax, eax
je 0x44d9b8
push ecx
push eax
push esi
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov eax, ebx
add esp, 8
pop esi
pop ecx
pop ebx
ret
Function at 0x450120
Capabilities:
Hide graphical window

Disassembly:
push ecx
push esi
push edi
push ebp
sub esp, 0x24
mov esi, eax
mov edi, edx
mov dword [eax + 0xe4], 3
mov dword [eax + 0x104], 3
mov dword [eax + 0x10], ebx
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
jne 0x4502e2
xor ebp, ebp
test byte [edx + 0x19], 0x10
jne 0x45015c
or byte [esi + 0x33], 8
lea eax, [esp + 0x1c]
lea ebx, [esp + 0x14]
xor ecx, ecx
push eax
mov edx, edi
mov dword [esp + 0x20], ecx
push ebp
lea ecx, [esp + 0x14]
mov eax, esi
call fcn.00454d00
test al, al
je 0x4502da
test byte [esi + 0x2d], 0x80
jne 0x450199
cmp dword [edi], 0
je 0x4502fb
or byte [esp + 0x22], 0xc0
or byte [esi + 0x33], 2
test byte [edi + 0x18], 8
je 0x4501a4
or byte [esp + 0x22], 4
test byte [edi + 0x14], 1
je 0x4501af
or byte [esp + 0x22], 0x10
test byte [edi + 0x14], 2
je 0x4501ba
or byte [esp + 0x22], 0x20
test byte [esi + 0x33], 2
je 0x450305
test byte [edi + 0x18], 0x10
je 0x4501cf
or byte [esp + 0x22], 1
test byte [edi + 0x18], 0x20
je 0x4501da
or byte [esp + 0x22], 2
test byte [edi + 0x18], 0x80
je 0x4501e5
or byte [esp + 0x22], 8
test byte [edi + 0x19], 0x10
je 0x4501f0
or byte [esp + 0x23], 0x80
test byte [edi + 0x19], 2
je 0x450312
or byte [esp + 0x20], 0x80
mov ecx, 0x4714d0
call fcn.004556a0
lea edx, [edi + 0x20]
xor ebx, ebx
mov dword [esi + 0x14], eax
mov eax, esi
call fcn.0045d440
mov eax, esi
call fcn.00451690
mov dword [esp], 0xc
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov eax, 4
test byte [edi + 0x1a], 1
je 0x450243
mov eax, 0x204
and byte [esp + 0x22], 0x7f
mov edx, esp
push edx
mov edx, dword [0x477600]
push edx
mov ebx, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push ebp
mov edx, dword [esp + 0x20]
push edx
mov ebx, dword [esp + 0x30]
push ebx
mov ebp, dword [esp + 0x30]
push ebp
mov edx, dword [esp + 0x40]
push edx
mov ebx, dword [edi]
push ebx
push ecx
push eax
call dword [sym.imp.USER32.DLL_CreateWindowExA]
mov ecx, eax
test eax, eax
je 0x45031c
mov eax, esi
mov edx, dword [edi + 0x38]
call fcn.004524a0
test byte [edi + 0x19], 0x60
je 0x4502c8
mov eax, esi
xor edx, edx
call fcn.00454e20
mov bh, byte [edi + 0x19]
test bh, 0x20
je 0x450326
mov eax, esi
call fcn.0044f500
mov edx, 1
mov eax, esi
call fcn.00454e20
test byte [esi + 0x2d], 4
je 0x4502c8
push 0
push ecx
call dword [sym.imp.USER32.DLL_ShowWindow]
test byte [esi + 0x2d], 4
jne 0x4502d5
mov eax, esi
call fcn.0044ffa0
test esi, esi
setne al
add esp, 0x24
pop ebp
pop edi
pop esi
pop ecx
ret
mov ebp, dword [ebx]
test byte [edx + 0x19], 0x10
jne 0x45015c
mov dword [esp + 0x20], 0x44000000
jmp 0x45015c
or byte [esp + 0x22], 0x80
jmp 0x450199
and byte [esi + 0x2c], 0x4f
and byte [edi + 0x18], 0x4f
jmp 0x4501e5
mov ecx, 0x477604
jmp 0x450204
xor al, al
add esp, 0x24
pop ebp
pop edi
pop esi
pop ecx
ret
test bh, 0x40
je 0x4502ad
mov eax, esi
call fcn.0044f4e0
jmp 0x4502ad
Function at 0x45a040
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ecx
push edx
push 0x10
mov byte [0x47174c], 0
call dword [sym.imp.USER32.DLL_GetKeyState]
push 0x14
test ax, ax
setl bl
call dword [sym.imp.USER32.DLL_GetKeyState]
cwde
test eax, eax
jl 0x45a0a8
test al, 1
setne al
movzx eax, al
test eax, eax
setne al
mov ah, al
test bl, bl
je 0x45a0af
test al, al
jne 0x45a0af
or byte [0x47174c], 2
push 0x11
call dword [sym.imp.USER32.DLL_GetKeyState]
test ax, ax
jge 0x45a097
or byte [0x47174c], 4
push 0x12
call dword [sym.imp.USER32.DLL_GetKeyState]
test ax, ax
jl 0x45a0b9
pop edx
pop ecx
pop ebx
ret
test al, 1
sete al
jmp 0x45a06a
test ah, ah
je 0x45a083
test bl, bl
je 0x45a07c
jmp 0x45a083
or byte [0x47174c], 1
pop edx
pop ecx
pop ebx
ret
Function at 0x461630
Capabilities:
Get common file path

Disassembly:
push ecx
push edx
sub esp, 0x104
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xor eax, eax
mov al, byte [esp]
call fcn.0046684b
sub eax, 0x60
add esp, 0x104
pop edx
pop ecx
ret

Function at 0x461660
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push ecx
push edx
sub esp, 0x104
mov ebx, eax
add al, 0x60
mov byte [esp], al
mov eax, esp
mov byte [esp + 1], 0x3a
push eax
mov word [esp + 6], 0x2e
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
xor eax, eax
mov al, byte [esp]
call fcn.0046684b
sub eax, 0x60
cmp eax, ebx
sete al
and eax, 0xff
dec eax
add esp, 0x104
pop edx
pop ecx
pop ebx
ret

Function at 0x461800
Capabilities:
Terminate process

Disassembly:
jmp 0x462b20
push ebx
push ecx
push edx
push ebp
mov ebp, esp
sub esp, 8
mov eax, 1
call fcn.00463280
mov eax, dword [0x471c38]
add eax, 3
and al, 0xfc
xor edx, edx
sub esp, eax
mov ecx, esp
mov ebx, dword [0x471c38]
mov eax, ecx
call fcn.00465dc0
mov eax, dword [0x471c38]
mov dword [ecx + 0x104], eax
mov eax, ecx
mov edx, ecx
call fcn.00463330
lea eax, [ebp - 8]
call fcn.00462ef0
mov ecx, dword [0x471c04]
add ecx, 3
and cl, 0xfc
call fcn.00460220
cmp ecx, eax
jb 0x462bb2
xor eax, eax
mov ecx, dword [0x471c04]
add eax, ecx
mov dword [0x471c08], eax
call fcn.00463360
push 0xa
mov eax, dword [0x471be4]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call fcn.0045cfd0
jmp 0x463362
push ecx
call fcn.00460278
mov eax, dword [0x471c04]
add eax, 3
and al, 0xfc
sub esp, eax
mov eax, esp
jmp 0x462b83
mov ecx, eax
call fcn.00462e70
cmp dword [0x477bf8], 0
je 0x462f87
cmp dword [0x471ac8], 0
jne 0x462f78
xor ebx, ebx
push ecx
mov dword [0x471a80], ebx
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov edx, 0xf
xor eax, eax
call dword [0x471ac8]
jmp 0x462f69
call fcn.004645b0
mov edx, 0xf
xor eax, eax
call fcn.004632d0
call dword [0x471abc]
jmp 0x462f69
mov ecx, eax
call dword [0x471c3c]
cmp dword [0x477bf8], 0
je 0x46339f
cmp dword [0x471ac8], 0
je 0x46338c
mov edx, 0xff
mov eax, 0x10
call dword [0x471ac8]
call dword [0x471c3c]
call dword [0x471c40]
mov eax, ecx
jmp 0x462f50
mov edx, 0xff
mov eax, 0x10
call fcn.004632d0
jmp 0x46338c
Function at 0x462800
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push esi
push edi
sub esp, 0x104
mov edi, eax
mov ebx, edx
mov eax, esp
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
mov ecx, eax
test eax, eax
je 0x462852
inc eax
test edi, edi
jne 0x462859
cmp ebx, eax
jbe 0x46282d
mov eax, ebx
call fcn.00466980
mov edi, eax
test eax, eax
jne 0x46286c
call dword [0x471a84]
mov dword [eax + 4], 5
xor eax, eax
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
call fcn.00463240
jmp 0x462845
cmp eax, ebx
jbe 0x46286c
call dword [0x471a84]
mov dword [eax + 4], 0xe
jmp 0x462845
mov esi, esp
inc ecx
push edi
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, edi
add esp, 0x104
pop edi
pop esi
pop ecx
pop ebx
ret
Function at 0x462c50
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov esi, ebx
mov dword [0x477bf8], eax
mov dword [0x471a80], edx
call fcn.00463620
xor eax, eax
mov dword [0x478328], eax
call dword [sym.imp.KERNEL32.DLL_GetVersion]
mov edx, eax
mov byte [0x471c1d], al
shr eax, 0x10
mov word [0x471c1f], ax
xor eax, eax
mov ax, word [0x471c1f]
and edx, 0xffff
mov dword [0x471c21], eax
xor eax, eax
sar edx, 8
mov al, byte [0x471c1d]
and edx, 0xff
mov dword [0x471c25], eax
xor eax, eax
mov al, dl
mov byte [0x471c1e], dl
mov dword [0x471c29], eax
mov eax, dword [0x471c25]
mov edx, dword [0x471c29]
shl eax, 8
or eax, edx
mov dword [0x471c2d], eax
cmp byte [0x471c1d], 4
jae 0x462d77
mov eax, 0x462be8
push eax
xor edx, edx
push 0x462c15
mov dword [0x471c19], edx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edx, eax
test eax, eax
je 0x462d0a
call edx
mov dword [0x471c19], eax
push 0x104
push 0x477bfc
push 0
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x477d00
xor eax, eax
mov dword [0x471be8], 0x477bfc
call fcn.00463750
mov dword [0x471bf4], 0x477d00
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
call fcn.004637f0
mov edx, eax
mov bl, byte [eax]
mov dword [0x477bf0], eax
cmp bl, 0x22
je 0x462d81
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x465e41], 2
je 0x462d99
xor edx, edx
mov dl, byte [eax]
test byte [edx + 0x465e41], 2
je 0x462da0
inc eax
jmp 0x462d67
mov eax, 0x462bfe
jmp 0x462ce2
inc eax
cmp bl, byte [eax]
je 0x462d91
cmp byte [eax], 0
je 0x462d91
inc eax
cmp byte [eax], 0x22
jne 0x462d86
cmp byte [eax], 0
je 0x462d67
inc eax
jmp 0x462d67
test dl, dl
je 0x462d67
inc eax
jmp 0x462d5a
mov dword [0x471be4], eax
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
test eax, eax
je 0x462e16
call fcn.00463830
mov edx, eax
mov bx, word [eax]
mov dword [0x477bf4], eax
cmp bx, 0x22
je 0x462de9
xor eax, eax
mov ax, word [edx]
call fcn.00463857
test eax, eax
je 0x462e0b
xor eax, eax
mov ax, word [edx]
call fcn.00463857
test eax, eax
je 0x462e1b
add edx, 2
jmp 0x462dd6
lea edx, [eax + 2]
cmp bx, word [edx]
je 0x462e00
cmp word [edx], 0
je 0x462e00
add edx, 2
cmp word [edx], 0x22
jne 0x462df1
cmp word [edx], 0
je 0x462dd6
add edx, 2
jmp 0x462dd6
cmp word [edx], 0
je 0x462dd6
add edx, 2
jmp 0x462dc8
mov edx, 0x462c22
mov dword [0x471bf0], edx
test edi, edi
jne 0x462e2e
mov eax, 1
pop edi
pop esi
pop ecx
ret
push 0x104
push 0x477f08
push esi
mov ebx, 0x208
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
mov edx, 0x47800c
mov eax, esi
mov dword [0x471bec], 0x477f08
call fcn.00463750
mov dword [0x471bf8], 0x47800c
mov eax, 1
pop edi
pop esi
pop ecx
ret
Function at 0x463130
Capabilities:
Get file attributes

Disassembly:
push ecx
push edx
push esi
sub esp, 0x140
mov ecx, eax
cmp word [0x471c1f], 0x8000
jae 0x46314f
cmp byte [0x471c1d], 4
jae 0x46319e
mov dl, 0x2a
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x46316b
cmp al, 0
je 0x463169
inc esi
mov al, byte [esi]
cmp al, dl
je 0x46316b
inc esi
cmp al, 0
jne 0x463153
sub esi, esi
test esi, esi
jne 0x46318f
mov dl, 0x3f
mov esi, ecx
mov al, byte [esi]
cmp al, dl
je 0x46318b
cmp al, 0
je 0x463189
inc esi
mov al, byte [esi]
cmp al, dl
je 0x46318b
inc esi
cmp al, 0
jne 0x463173
sub esi, esi
test esi, esi
je 0x4631a7
mov eax, 0xffffffff
add esp, 0x140
pop esi
pop edx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
jmp 0x463194
mov edx, esp
mov eax, ecx
call fcn.004647c0
cmp eax, 0xffffffff
je 0x463194
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
add esp, 0x140
pop esi
pop edx
pop ecx
ret

Function at 0x465289
Capabilities:
Terminate process
Write file on windows

Disassembly:
push edx
mov edx, 0xff
mov eax, 0x465260
jmp 0x461980