joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x43bb00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
or ebp, 0xffffffff
jmp 0x43bb22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43bb29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43bb18
mov eax, 1
add ebx, ebx
jne 0x43bb3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43bb30
jne 0x43bb4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43bb30
xor ecx, ecx
sub eax, 3
jb 0x43bb60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43bbd2
mov ebp, eax
add ebx, ebx
jne 0x43bb6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43bb78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43bb9c
inc ecx
add ebx, ebx
jne 0x43bb88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43bb7d
jne 0x43bb99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43bb7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43bbbc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43bbad
jmp 0x43bb1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43bbbc
add edi, ecx
jmp 0x43bb1e
pop esi
mov edi, esi
mov ecx, 0x11a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43bbda
cmp byte [edi], 7
jne 0x43bbda
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43bbdf
lea edi, [esi + 0x39000]
mov eax, dword [edi]
or eax, eax
je 0x43bc4e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d7f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d894]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43bc0c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d898]
or eax, eax
je 0x43bc48
mov dword [ebx], eax
add ebx, 4
jmp 0x43bc29
call dword [esi + 0x3d89c]
popal
jmp 0x4015d3
Function at 0x4471c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3b000]
push edi
jmp 0x4471da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4471e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4471d0
mov eax, 1
add ebx, ebx
jne 0x4471f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4471e8
jne 0x447204
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4471e8
xor ecx, ecx
sub eax, 3
jb 0x447218
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x44728a
mov ebp, eax
add ebx, ebx
jne 0x447223
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x447230
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x447254
inc ecx
add ebx, ebx
jne 0x447240
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x447235
jne 0x447251
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x447235
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x447274
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x447265
jmp 0x4471d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x447274
add edi, ecx
jmp 0x4471d6
pop esi
mov edi, esi
mov ecx, 0x6d0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x447292
cmp byte [edi], 0x11
jne 0x447292
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x447297
lea edi, [esi + 0x45000]
mov eax, dword [edi]
or eax, eax
je 0x44730f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69078]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x69140]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4472c4
mov ecx, edi
jns 0x4472f3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x69144]
or eax, eax
je 0x447309
mov dword [ebx], eax
add ebx, 4
jmp 0x4472e1
call dword [esi + 0x69154]
mov ebp, dword [esi + 0x69148]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x447343
sub esp, 0xffffff80
jmp 0x40a7b1
Function at 0x401000
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebp, dword [esp + 0x1c]
push dword [esp + 0x20]
call fcn.00423ab1
add esp, 4
mov ebx, eax
push dword [esp + 0x24]
call fcn.00421b40
add esp, 4
mov edi, eax
lea eax, [eax + ebx*2]
add eax, 0x67
push 0x40
push 0x3000
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
je 0x401188
mov esi, eax
lea eax, [ebx*2 + 0x66]
lea ecx, [esi + 0x64]
mov dword [esp + 4], ecx
mov dword [0x457006], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
sub ecx, esi
add ecx, 0xfffffff1
mov dword [0x45700b], ecx
add eax, esi
mov dword [0x457016], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub eax, esi
add eax, 0xffffffe0
mov dword [0x45701c], eax
mov ecx, ebp
lea ebp, [esi + 0x60]
mov dword [0x457025], ebp
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub eax, esi
add eax, 0xffffffc4
mov dword [0x457038], eax
mov eax, dword [sym.imp.KERNEL32.dll_ExitThread]
sub eax, esi
add eax, 0xffffffbe
mov dword [0x45703e], eax
mov dword [esp], 4
push 0
push 0x60
push section..data
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401171
push 0
push 4
push dword [esp + 0x30]
push ebp
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401171
lea ebx, [ebx*2 + 2]
push 0
push ebx
push dword [esp + 0x28]
push dword [esp + 0x10]
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401171
inc edi
mov eax, dword [esp + 4]
add eax, ebx
push 0
push edi
push dword [esp + 0x2c]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401171
push 0x60
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
je 0x401171
mov dword [esp], 5
push 0
push 0
push 0
push esi
push 0
push 0
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x401171
mov edi, eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esp
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push esi
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [esp]
jmp 0x40118d
mov eax, 4
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4011a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Resume thread
Suspend thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2dc
mov esi, dword [esp + 0x2f4]
mov edi, dword [esp + 0x2f0]
lea eax, [esp + 0x14]
push 0x2c8
push 0
push eax
call fcn.00402ed0
add esp, 0xc
mov dword [esp + 0x10], 0x10006
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
cmp byte [0x457a2c], 0
lea ebp, [esp + 8]
je 0x40127d
push ebp
push dword [esp + 0xa4]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
test eax, eax
je 0x401289
movzx ecx, word [esp + 0xa]
mov eax, dword [esp + 0xc]
movzx edx, al
shl edx, 0x10
and eax, 0xff000000
or eax, ecx
lea ecx, [eax + edx]
mov dword [esp], ecx
add eax, edx
add eax, 0x30
mov esi, esp
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
push esi
push eax
push edi
call ebx
mov eax, dword [esp]
add eax, 8
push 0
push 4
push esi
push eax
push edi
call ebx
mov eax, dword [esp]
add eax, 0x3c
lea esi, [esp + 4]
push 0
push 4
push esi
push eax
push edi
call ebx
mov eax, dword [esp]
mov ecx, dword [esp + 4]
add eax, ecx
add eax, 0x28
push 0
push 4
push esi
push eax
push edi
call ebx
mov eax, dword [esp]
add eax, dword [esp + 4]
mov dword [esp], eax
jmp 0x40129b
mov eax, dword [esp + 0xc0]
mov dword [esp], eax
jmp 0x40129b
mov eax, dword [section..rdata]
push str.GetThreadSelectorEntry_failed_n
call eax
add esp, 4
mov eax, dword [esp]
push ebp
push 0x40
push 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea eax, [esp + 4]
push 0
push 2
push eax
push dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 2
push 0x44d004
push dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 2
push dword [esp + 4]
push edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov ebp, dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edi, dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov ebx, dword [esp + 0x2f4]
lea esi, [esp + 0x10]
nop word cs:[eax + eax]
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call ebp
mov dword [esp + 0x10], 0x10001
push esi
push ebx
call edi
mov eax, dword [esp]
cmp eax, dword [esp + 0xc8]
jne 0x401300
push 0
push 2
lea ecx, [esp + 0xc]
push ecx
push eax
mov esi, dword [esp + 0x300]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esp + 8]
push eax
push dword [esp + 0xc]
push 2
push dword [esp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 2
push dword [esp + 4]
push esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
add esp, 0x2dc
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401370
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x58
xorps xmm0, xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], 0x44
movups xmmword [esp], xmm0
sub esp, 0x28
lea eax, [esp + 0x28]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x44d030]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp], str.th155.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401457
mov esi, dword [esp + 0x6c]
push dword [esp + 4]
push dword [esp + 4]
call fcn.004011a0
add esp, 8
push esi
push str.netcode_init
push str.Netcode.dll
push dword [esp + 0xc]
call section..text
add esp, 0x10
test eax, eax
sete bl
je 0x40145b
mov esi, eax
mov eax, dword [0x44d008]
mov dword [esp + 0x10], eax
mov eax, esi
inc eax
mov ebp, str.Thread_returned_garbage_exit
cmp eax, 6
ja 0x401433
mov ebp, dword [esi*4 + 0x44d010]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push 2
call fcn.00403225
add esp, 4
push ebp
push edi
push esi
push str.Code_Injection_failed...__X__lX__n_s_n
push eax
call dword [esp + 0x24]
add esp, 0x14
jmp 0x401478
xor ebx, ebx
jmp 0x401489
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp byte [esp + 0x70], 0
je 0x401478
push 0xffffffffffffffff
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 4]
call esi
push dword [esp]
call esi
mov eax, ebx
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4014a0
Capabilities:
Set console window title

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x14]
mov dword [esp], 2
cmp eax, 2
jl case.default.0x4014e9
mov eax, dword [esp + 0x18]
mov edi, dword [eax + 4]
mov dword [esp + 4], edi
lea eax, [esp + 4]
push 0xa
push eax
push edi
call fcn.004220fa
add esp, 0xc
cmp dword [esp + 4], edi
je case.default.0x4014e9
mov esi, eax
cmp eax, 3
ja case.default.0x4014e9
jmp dword [esi*4 + 0x44d248]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0
call fcn.00403225
add esp, 4
push eax
push 0x44d214
push str.CONIN_
call fcn.004215df
add esp, 0xc
push 1
call fcn.00403225
add esp, 4
push eax
push 0x44d21d
push 0x44d221
call fcn.004215df
add esp, 0xc
push 1
call fcn.00403225
add esp, 4
push 0
push 4
push 0
push eax
call fcn.004218b5
add esp, 0x10
push 2
call fcn.00403225
add esp, 4
push eax
push 0x44d229
push 0x44d221
call fcn.004215df
add esp, 0xc
push str.th155r_debug
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp esi, 3
jne 0x40161f
mov dword [esp], 2
jmp 0x40161f
mov dword [esp], 0
jmp 0x40161f
mov dword [esp], 2
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push 0
call fcn.00403225
add esp, 4
push eax
push 0x44d214
push str.CONIN_
call fcn.004215df
add esp, 0xc
push 1
call fcn.00403225
add esp, 4
push eax
push 0x44d21d
push 0x44d221
call fcn.004215df
add esp, 0xc
push 1
call fcn.00403225
add esp, 4
push 0
push 4
push 0
push eax
call fcn.004218b5
add esp, 0x10
push 2
call fcn.00403225
add esp, 4
push eax
push 0x44d229
push 0x44d221
call fcn.004215df
add esp, 0xc
push str.th155r_debug
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.wine_get_version
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401641
mov byte [0x457a2c], 1
mov eax, dword [section..rdata]
mov ecx, str.Wine
mov edx, str.Windows
cmp byte [0x457a2c], 0
cmovne edx, ecx
push edx
push str.Starting_patcher_nOS_Type:__s_n
call eax
add esp, 8
xor eax, eax
cmp dword [esp], 2
sete al
mov ecx, esp
push eax
push ecx
call fcn.00401370
add esp, 8
test al, al
je 0x40168d
mov eax, dword [section..rdata]
push str.Patch_succesful__you_can_close_this_now_n
call eax
add esp, 4
xor eax, eax
add esp, 8
pop esi
pop edi
ret

Function at 0x42bcc6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x44f0f8
push str.FlsAlloc
push 0x1e
call fcn.0042c6a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bcfa
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x42bd00
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x42bd44
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x44f11c
push str.FlsGetValue
push 0x20
call fcn.0042c6a4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42bd7b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x437a93
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x457074]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x437ade
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00437d85
test al, al
jne 0x437ad8
sub edx, 2
cmp edx, edi
jne 0x437abe
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x437b00
lea eax, [edi + 2]
cmp edx, eax
je 0x437b00
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004379df
add esp, 0x10
jmp 0x437bfa
push esi
lea ecx, [ebp - 0x255]
call fcn.00437d85
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x437b43
push dword [ebp - 0x25c]
jmp 0x437af0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x437b80
cmp word [ebp - 0x226], 0
je 0x437ba1
cmp word [ebp - 0x226], ax
jne 0x437b80
cmp word [ebp - 0x224], 0
je 0x437ba1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004379df
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x437bed
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x437b5a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x437bd5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x437bfa
push 0x437dc3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00444060
add esp, 0x10
jmp 0x437bca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004024a2
leave
ret
Function at 0x4393b2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43944f
push ebx
push esi
call fcn.004394b5
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00439296
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4393fc
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43944e
push edi
push eax
call fcn.0042fb54
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43941c
call fcn.0042e487
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43944d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00439296
add esp, 0x20
test eax, eax
jne 0x43943b
push edi
call fcn.0042e487
jmp 0x439443
push ebx
call fcn.0042e487
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x439452
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x439463
pop esi
ret
push ebx
push edi
push esi
call fcn.004394b5
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0042fb54
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43948b
push ebx
push esi
push edi
call fcn.004311e0
add esp, 0xc
push 0
call fcn.0042e487
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x439551
Capabilities:
Set environment variable

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

Function at 0x439e51
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439ed9
Function at 0x447112
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x458a20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x447152
cmp byte [ebx], 0xa
jne 0x447152
or byte [eax + edi + 0x28], 4
jmp 0x447157
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x447255
mov al, byte [edx]
cmp al, 0x1a
je 0x447237
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x447186
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4471ab
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4471b5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x447168
jmp 0x447255
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x447232
cmp dword [ebp - 0xc], 0
je 0x447232
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x458a20]
test byte [eax + edi + 0x28], 0x48
je 0x44720c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4471f7
mov byte [esi], dl
jmp 0x447208
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458a20]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x447255
cmp byte [ebp - 1], 0xa
jne 0x44721b
cmp esi, ebx
jne 0x44721b
mov byte [esi], 0xa
jmp 0x447254
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044643a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x447255
mov byte [esi], 0xd
jmp 0x447254
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x458a20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x447251
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x447255
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44725e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x458a20]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4472a1
cmp word [esi], dx
jne 0x4472a1
or byte [edi + eax + 0x28], 4
jmp 0x4472a6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4473df
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4473bf
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4472e8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44731e
cmp eax, edx
jae 0x44732a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4472c0
jmp 0x4473df
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4473bb
cmp dword [ebp - 0x14], 0
je 0x4473bb
mov eax, dword [ebx*4 + 0x458a20]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x447393
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4473d9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x458a20]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x458a20]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x458a20]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4473dc
pop ebx
cmp word [ebp - 4], bx
jne 0x4473a4
cmp esi, dword [ebp + 0xc]
jne 0x4473a4
mov word [esi], bx
jmp 0x4473dc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044643a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4473df
push 0xd
jmp 0x4473d8
mov ecx, dword [ebx*4 + 0x458a20]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4473d6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4473df
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret