joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44932c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x449343
add esp, 0xfffffff0
call fcn.00403150
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004159f0
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40ecf8]
call fcn.00402e20
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40ecf8]
call fcn.00402e20
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x41777c]
call fcn.0041eab0
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x4494b4
mov eax, dword [0x498e88]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041ee54
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x44adc8
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x498e88]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c6b8
test eax, eax
je 0x449433
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ddc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c6e0
test eax, eax
je 0x449447
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.00403c30
mov eax, dword [0x498cc4]
cmp byte [eax], 0
jne 0x449478
mov eax, ebx
call fcn.004495a0
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4494aa
call fcn.004031a8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4497fc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49a7a8]
cmp dword [eax + 0x24], 0
je 0x44988c
cmp dword [ebx + 0x7c], 0
jne 0x449889
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x449790
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x449889
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x449858
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x449889
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.00410548
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x449864
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x44a1dc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x44a211
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403ae8
jmp 0x44a21b
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403a9c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44b0f8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44b130
mov eax, esi
call fcn.00434448
test al, al
je 0x44b130
mov eax, dword [ebx + 0x6c]
call fcn.00434020
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44b130
push 0
mov eax, dword [ebx + 0x6c]
call fcn.00434020
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4511f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4513d2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x45123a
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00450d10
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.0040c2a8
cmp al, 1
jne 0x45123a
dec ebx
mov edi, ebx
mov eax, esi
call fcn.00450fd4
test al, al
je 0x451372
test edi, edi
jge 0x451251
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00450d10
mov eax, dword [ebp - 0x204]
call fcn.00403c80
cmp ebx, eax
jge 0x451298
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00450d10
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x499244]
and eax, 0xff
bt dword [edx], eax
jae 0x451298
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x4512a6
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.004511cc
cmp ebx, edi
je 0x45136a
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x4512d0
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.0040302c
and eax, 0x7f
movzx eax, word [eax*2 + 0x497be8]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.0040302c
and eax, 0x7f
movzx eax, word [eax*2 + 0x497be8]
push eax
push 0x100
mov eax, esi
call fcn.00434020
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.0040302c
and eax, 0x7f
movzx eax, word [eax*2 + 0x497be8]
push eax
push 0x101
mov eax, esi
call fcn.00434020
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x4513b9
test edi, edi
jge 0x451378
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00450d10
mov eax, dword [ebp - 0x204]
call fcn.00403c80
cmp edi, eax
jl 0x4513ae
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.00450d10
mov eax, dword [ebp - 0x204]
call fcn.00403c80
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.004511cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4513d9
lea eax, [ebp - 0x204]
call fcn.00403a04
ret

Function at 0x465533
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x49894a
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46558b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x49896b
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x465581
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x46558f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x481bb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x481c53
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00403e44
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x481c2d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
lea edx, [ebp - 0x10]
mov eax, dword [0x499270]
call fcn.00405c90
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x4816c8]
call fcn.0040ba44
call fcn.004034fc
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0048187c
mov edx, dword [ebp + 8]
mov byte [edx], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481c5a
lea eax, [ebp - 0x10]
call fcn.00403a04
ret
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48b004]
jne 0x401010
repz ret
jmp fcn.004017e1

Function at 0x406b7e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040250a
and dword [ebp - 4], 0
cmp dword [0x48cffc], 0
mov ebx, eax
jne 0x406c2f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ce0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406ce0
push eax
call fcn.00402498
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x48cffc], eax
call esi
push eax
call fcn.00402498
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x48d000], eax
call esi
push eax
call fcn.00402498
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x48d004], eax
call esi
push eax
call fcn.00402498
pop ecx
mov dword [0x48d00c], eax
test eax, eax
je 0x406c2f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402498
pop ecx
mov dword [0x48d008], eax
mov eax, dword [0x48d008]
cmp eax, ebx
je 0x406c87
cmp dword [0x48d00c], ebx
je 0x406c87
push eax
call fcn.00402513
push dword [0x48d00c]
mov esi, eax
call fcn.00402513
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406c87
test edi, edi
je 0x406c87
call esi
test eax, eax
je 0x406c7e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406c7e
test byte [ebp - 0xc], 1
jne 0x406c87
or dword [ebp + 0x10], 0x200000
jmp 0x406cc0
mov eax, dword [0x48d000]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.00402513
pop ecx
test eax, eax
je 0x406cc0
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406cc0
mov eax, dword [0x48d004]
cmp eax, ebx
je 0x406cc0
push eax
call fcn.00402513
pop ecx
test eax, eax
je 0x406cc0
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x48cffc]
call fcn.00402513
pop ecx
test eax, eax
je 0x406ce0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ce2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4842d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push edi
cmp ebp, 0x19f
jne 0x4842f1
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edi, edi
test ebp, ebp
jle 0x484346
push esi
jmp 0x484300
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 5
mov dword [esp + 0x10], 0
call fcn.004842c0
mov eax, dword [esp + 0x10]
add eax, 0x46
mov dword [esp + 0xc], eax
sub dword [esp + 0xc], 0x46
movsx eax, byte [edi + ebx]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
xor dword [esp + 0x18], eax
mov cl, byte [esp + 0x18]
mov byte [edi + ebx], cl
inc edi
cmp edi, ebp
jl 0x484300
pop esi
pop edi
cmp ebp, 0x2d
pop ebp
jne 0x484361
mov dword [0x2b8b218], 0xa62e7790
mov dword [0x2b8b21c], 0xffffffff
add esp, 8
ret
Function at 0x4116a4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a94
xor eax, eax
push ebp
push 0x41176e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x413b48], 0
jne 0x4116d6
call fcn.00411664
push 2
push 0
push 0
mov eax, dword [0x413b48]
push eax
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
jne 0x4116f1
call fcn.00411664
lea edx, [ebp - 0xc]
mov al, byte [0x413b42]
call fcn.00405580
push dword [ebp - 0xc]
push 0x411784
push dword [ebp - 4]
push 0x411790
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403964
mov byte [0x413b42], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004038a4
push eax
lea eax, [ebp - 4]
call fcn.00403afc
push eax
mov eax, dword [0x413b48]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x411750
mov dword [ebp - 8], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411775
lea eax, [ebp - 0xc]
call fcn.0040372c
lea eax, [ebp - 4]
call fcn.0040372c
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x460008], 0x8088405
inc edx
mov dword [ebx + 0x460008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cb84
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cbb5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cb9d
add dl, dl
jne 0x41cbc0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc11
xor eax, eax
add dl, dl
jne 0x41cbcd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ccae
add dl, dl
jne 0x41cbdc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbe7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbf2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cbfd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cc07
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cbac
mov eax, 1
add dl, dl
jne 0x41cc1f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cc2a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc16
sub eax, ebx
mov ebx, 1
jne 0x41cc5d
mov ecx, 1
add dl, dl
jne 0x41cc43
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc4e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc3a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cc74
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cc7f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cc6b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cbac
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cccf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cbac
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41dffc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44b4bb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e0ad
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e096
test esi, esi
jbe 0x41e0ad
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088a4
test eax, eax
jne 0x41e088
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e0ad
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e065
jmp 0x41e0ad
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e0ad
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44b4c2
ret
Function at 0x41e8f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0x44be9f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41e92b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41e944
lea eax, [ebp - 0x10]
mov edx, dword [0x46223c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41e957
lea eax, [ebp - 0x10]
mov edx, dword [0x46223c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41e963
adc edx, 0
mov edx, dword [edx*4 + 0x4610d0]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406af4
mov esi, eax
cmp esi, 0xffffffff
je 0x41ea71
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ea64
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406d94
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ea64
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ea64
cmp dx, 0x150
ja 0x41ea64
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d3c
test eax, eax
je 0x41ea64
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ea64
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406aac
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ea89
inc ebx
cmp ebx, 0x19
jne 0x41e91d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44bea6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push 0
mov ebp, esp
and esp, 0xfffffff0
sub esp, 4
mov edx, 0
jmp fcn.00413180
Function at 0x40b511
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0040f867
pop ecx
mov esi, eax
mov eax, esi
add eax, dword [ebp + 8]
mov edi, eax
mov byte [ebp - 1], 0x20
mov eax, esi
movzx ecx, byte [ebp - 1]
or eax, ecx
mov ebx, eax
jmp 0x40b562
dec edi
mov eax, edi
movzx eax, byte [eax]
movzx ecx, byte [ebp - 1]
or eax, ecx
mov byte [ebp - 9], al
mov eax, ebx
shl eax, 0xe
mov ecx, ebx
shr ecx, 2
or eax, ecx
movzx eax, ax
movzx ecx, byte [ebp - 9]
xor eax, ecx
mov ebx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x40b53c
mov eax, ebx
sub edx, edx
div dword [ebp + 0xc]
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x413751
mov eax, 1
jmp 0x41375c
mov eax, ebx
and eax, 1
sete al
movzx eax, al
pop ebx
pop ebp
ret

Function at 0x4141b4
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2c4
push 0x40
call sub.KERNEL32.DLL_LocalAlloc
mov ebx, eax
test ebx, ebx
jne 0x4141e7
push str.out_of_memory
push dword [0x420a2c]
call fcn.0040dcde
add esp, 8
call fcn.0040bf5c
push ebx
call sub.KERNEL32.DLL_LocalLock
mov esi, eax
mov dword [esi + 4], ebx
push esi
push dword [0x423a50]
call sub.KERNEL32.DLL_TlsSetValue
test edi, edi
je 0x414207
call fcn.00413567
mov eax, dword [0x423a54]
mov dword [esi], eax
mov dword [0x423a54], esi
test edi, edi
je 0x41421d
call fcn.00413576
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x418ac6
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea esi, [ebp - 8]
mov edi, dword [ebp + 8]
lea ebx, [ebp - 0x108]
push ebx
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test edi, edi
je 0x418b00
movsx eax, byte [ebx]
sub eax, 0x40
mov dword [edi], eax
movsx eax, byte [ebx]
cmp eax, 0x61
jl 0x418b00
sub dword [edi], 0x20
mov byte [esi], 0x3d
mov al, byte [ebx]
mov byte [esi + 1], al
mov byte [esi + 2], 0x3a
mov byte [esi + 3], 0x5c
mov byte [esi + 4], 0
push ebx
push esi
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov eax, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418b3a
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
and eax, 0x80
je 0x418b51
mov eax, 0x80
jmp 0x418b56
mov eax, 1
mov ebx, eax
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
je 0x418b6c
mov eax, 0
jmp 0x418b81
call sub.KERNEL32.DLL_GetLastError
push eax
call fcn.00414180
mov ecx, eax
pop eax
mov dword [ecx], eax
mov eax, 0xffffffff
pop ebx
pop ebp
ret
Function at 0x418b84
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push esi
call fcn.004136bf
pop ecx
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
cmp eax, 0xffffffff
jne 0x418bb6
mov eax, dword [ebp - 0x104]
jmp 0x418cc8
push 2
push 0
push esi
call fcn.00413883
add esp, 0xc
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418bd1
mov eax, ebx
jmp 0x418cc8
push esi
call fcn.004136bf
pop ecx
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x418be6
mov eax, ebx
jmp 0x418cc8
cmp ebx, dword [ebp + 0xc]
je 0x418cb7
cmp ebx, dword [ebp + 0xc]
jge 0x418c7c
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x100]
push eax
call fcn.0040dc3c
add esp, 0xc
mov eax, dword [ebp + 0xc]
sub eax, ebx
mov ebx, eax
jmp 0x418c4b
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.00413ca4
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x418c3b
cmp edi, 0x100
je 0x418c45
mov eax, 0xffffffff
jmp 0x418cc8
sub ebx, 0x100
cmp ebx, 0x100
jge 0x418c17
test ebx, ebx
je 0x418c7a
push ebx
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.00413ca4
add esp, 0xc
mov edi, eax
cmp edi, 0xffffffff
je 0x418c73
cmp edi, ebx
je 0x418c7a
mov eax, 0xffffffff
jmp 0x418cc8
jmp 0x418cb7
push 0
push dword [ebp + 0xc]
push esi
call fcn.00413883
add esp, 0xc
cmp eax, 0xffffffff
jne 0x418c96
mov eax, 0xffffffff
jmp 0x418cc8
push esi
call sub.KERNEL32.DLL_SetEndOfFile
test eax, eax
jne 0x418cb7
call sub.KERNEL32.DLL_GetLastError
push eax
call fcn.00414180
mov ecx, eax
pop eax
mov dword [ecx], eax
mov eax, 0xffffffff
jmp 0x418cc8
push 0
push dword [ebp - 0x104]
push esi
call fcn.00413883
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418ccf
Capabilities:
Get common file path
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
lea ebx, [ebp - 0x100]
lea esi, [ebp - 0x104]
mov edi, dword [ebp + 8]
mov eax, esi
push edi
mov edi, eax
cld
sub eax, eax
mov ecx, 1
rep stosd dword es:[edi], eax
pop edi
mov eax, dword [0x41d67e]
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x418d15
push ebx
push pe_nt_image_headers32
call sub.KERNEL32.DLL_GetCurrentDirectoryA
jmp 0x418d50
mov eax, dword [ebp + 0xc]
add eax, 0x40
mov byte [esi + 1], al
push pe_nt_image_headers32
push ebx
push esi
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
jne 0x418d50
mov eax, esi
inc eax
push eax
push ebx
call fcn.0040e83a
add esp, 8
push 0x41d67c
push ebx
call fcn.0040e7bd
add esp, 8
push ebx
push esi
call sub.KERNEL32.DLL_SetEnvironmentVariableA
mov eax, ebx
add eax, 3
push eax
push edi
call fcn.0040e83a
add esp, 8
push edi
call fcn.0040f867
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret