joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa9c058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xa9c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa9c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9c06a
add dl, dl
jne 0xa9c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9c0dc
xor eax, eax
add dl, dl
jne 0xa9c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa9c17d
add dl, dl
jne 0xa9c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa9c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa9c075
mov eax, 1
add dl, dl
jne 0xa9c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa9c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9c0e1
sub eax, ebx
mov ebx, 1
jne 0xa9c128
mov ecx, 1
add dl, dl
jne 0xa9c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa9c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa9c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa9c136
cmp eax, 0x7d00
jae 0xa9c16d
cmp eax, 0x500
jb 0xa9c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9c075
cmp eax, 0x7f
ja 0xa9c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa9c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa9c19e
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 0xa9c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4010df
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4584c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0xa0], ecx
call fcn.0041d260
mov esi, eax
pop ecx
lea eax, [esi - 1]
cmp eax, 0x3e7
ja 0x401314
mov edx, dword [ebp - 0x94]
cmp byte [edx], 0x5b
jne 0x401173
xor ecx, ecx
mov dword [ebx], 2
inc ecx
cmp esi, ecx
jle 0x401314
cmp byte [edx + ecx], 0x5d
je 0x401148
inc ecx
cmp ecx, esi
jl 0x40113d
cmp ecx, esi
jge 0x401314
lea eax, [ecx + 1]
lea edi, [ecx - 1]
cmp eax, esi
jge 0x401314
cmp byte [edx + ecx + 1], 0x3a
jne 0x401314
lea eax, [ecx + 2]
xor ecx, ecx
sub esi, eax
inc ecx
jmp 0x40119d
xor edi, edi
mov dword [ebx], 1
test esi, esi
jle 0x401314
cmp byte [edx + edi], 0x3a
je 0x40118e
inc edi
cmp edi, esi
jl 0x401183
cmp edi, esi
jge 0x401314
lea eax, [edi + 1]
xor ecx, ecx
sub esi, eax
mov dword [ebp - 0x98], eax
cmp edi, 0x80
jae 0x401314
lea eax, [edx + ecx]
push edi
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00416b10
add esp, 0xc
mov byte [ebp + edi - 0x8c], 0
cmp esi, 6
jae 0x401314
mov eax, dword [ebp - 0x94]
add eax, dword [ebp - 0x98]
push esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00416b10
push 0xa
lea eax, [ebp - 0x9c]
mov byte [ebp + esi - 0xc], 0
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041d689
add esp, 0x18
mov ecx, eax
cmp byte [ebp - 0xc], 0
je 0x401314
mov eax, dword [ebp - 0x9c]
cmp byte [eax], 0
jne 0x401314
cmp ecx, 0xffff
ja 0x401314
push ecx
call fcn.00409815
push 0x20
movzx esi, ax
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00417610
mov eax, dword [ebx]
add esp, 0x10
sub eax, 1
je 0x401260
sub eax, 1
jne 0x40126a
mov dword [ebp - 0xbc], 0x17
jmp 0x40126a
mov dword [ebp - 0xbc], 2
cmp dword [ebp + 0x18], 0
je 0x401277
or dword [ebp - 0xc0], 4
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x401314
mov eax, dword [ebx]
sub eax, 1
je 0x4012c5
sub eax, 1
jne 0x4012d8
mov eax, dword [ebp - 0x90]
push 0x10
mov eax, dword [eax + 0x18]
add eax, 8
push eax
lea eax, [ebx + 4]
push eax
call fcn.00416b10
add esp, 0xc
mov word [ebx + 0x14], si
jmp 0x4012d8
mov eax, dword [ebp - 0x90]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov word [ebx + 8], si
push dword [ebp - 0x90]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, dword [ebp - 0xa0]
test esi, esi
je 0x40130f
lea eax, [ebp - 0x8c]
push eax
call fcn.0041d260
pop ecx
cmp eax, dword [ebp + 0x14]
jae 0x401314
lea eax, [ebp - 0x8c]
push eax
push esi
call fcn.0041d160
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x401316
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004146ec
mov esp, ebp
pop ebp
ret
Function at 0x4014d9
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x4584c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.0041d260
mov esi, eax
xor eax, eax
inc eax
pop ecx
cmp esi, eax
jl 0x40151d
cmp byte [edi], 0x5b
jne 0x40151d
cmp byte [edi + esi - 1], 0x5d
jne 0x40151d
inc edi
mov dword [ebx], 2
add esi, 0xfffffffe
jmp 0x40151f
mov dword [ebx], eax
cmp esi, 0x80
jle 0x40153a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004146ec
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x88]
push edi
push eax
call fcn.00416b10
add esp, 0xc
cmp esi, 0x81
jae 0x401612
push 0x20
lea eax, [ebp - 0xac]
mov byte [ebp + esi - 0x88], 0
push 0
push eax
call fcn.00417610
mov eax, dword [ebx]
add esp, 0xc
sub eax, 1
je 0x40158a
sub eax, 1
jne 0x401594
mov dword [ebp - 0xa8], 0x17
jmp 0x401594
mov dword [ebp - 0xa8], 2
cmp dword [ebp + 0x10], 0
je 0x4015a1
or dword [ebp - 0xac], 4
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0xac]
push eax
push 0
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x401527
mov eax, dword [ebx]
sub eax, 1
je 0x4015ef
sub eax, 1
jne 0x4015fe
mov eax, dword [ebp - 0x8c]
push 0x10
mov eax, dword [eax + 0x18]
add eax, 8
push eax
lea eax, [ebx + 4]
push eax
call fcn.00416b10
add esp, 0xc
jmp 0x4015fe
mov ecx, dword [ebp - 0x8c]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 4]
mov dword [ebx + 4], ecx
push dword [ebp - 0x8c]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
inc eax
jmp 0x401529
call fcn.00414610
int3

Function at 0x403acd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x447310
push dword [ebp + 8]
call fcn.0041b1f5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x403b7e
xor eax, eax
mov ebx, 0x80
push ebx
mov dword [ebp - 4], eax
call fcn.0041d2f0
mov edi, eax
pop ecx
test edi, edi
je 0x403b77
xor ecx, ecx
cmp ecx, ebx
jne 0x403b2a
or eax, 0xffffffff
xor edx, edx
div ebx
cmp eax, 2
jb 0x403b70
add ebx, ebx
push ebx
push edi
call fcn.0041d2fb
pop ecx
pop ecx
test eax, eax
je 0x403b70
mov ecx, dword [ebp - 4]
mov edi, eax
push esi
mov eax, ebx
sub eax, ecx
push eax
lea eax, [edi + ecx]
push 1
push eax
call fcn.0041b3d8
add esp, 0x10
test eax, eax
je 0x403b4c
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
jmp 0x403b06
push esi
call fcn.0041b109
pop ecx
test eax, eax
je 0x403b70
push esi
call fcn.0041b089
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
inc eax
jmp 0x403b80
push edi
call fcn.0041d2eb
pop ecx
push esi
call fcn.0041b089
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056d1
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4584c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x194]
mov esi, 0x202
push eax
push esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40570f
push str.WSAStartup_failed
push 1
push 0x5b
call fcn.00404191
add esp, 0xc
jmp 0x40572f
cmp word [ebp - 0x194], si
je 0x405733
push str.WSAStartup_returned_wrong_version
push 1
push 0x5b
call fcn.00404191
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
jmp 0x40573b
xor eax, eax
inc eax
mov dword [0x45a2d0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004146ec
mov esp, ebp
pop ebp
ret

Function at 0x405c22
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xe
jl 0x405cb6
push ebx
push esi
mov esi, dword [ebp + 8]
push 0x14
push 0
lea ebx, [esi + 0x6c]
push ebx
call fcn.00417610
add esp, 0xc
push ebx
push 0
push edi
push dword [ebp + 0xc]
push dword [esi + 0x68]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x405c80
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x405c80
call esi
push eax
push str.WriteFile_failed___u_
push 1
push 0x4e
call fcn.00404191
add esp, 0x10
jmp 0x405cb4
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
call fcn.00404525
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x405c9e
push str.write_operation_failed
jmp 0x405ca8
cmp dword [ebp + 8], edi
jae 0x405cb4
push str.write_operation_didnt_write_everything
push 1
push 0x4e
call fcn.00404191
add esp, 0xc
pop esi
pop ebx
pop edi
pop ebp
ret
Function at 0x413a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x413a64
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x413a64
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x413ac0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
cmp dword [ebp + 0x14], edi
jge 0x413ad4
mov eax, 1
pop edi
pop ebp
ret
push esi
push dword [ebp + 8]
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, eax
test esi, esi
jne 0x413aef
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
ret
push ebx
push edi
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x413b13
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 1]
pop ebx
pop esi
pop edi
pop ebp
ret
push edi
push ebx
push dword [ebp + 0x10]
call fcn.00416b10
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret

Function at 0x4142c0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push esi
mov esi, ecx
push dword [esi]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4142f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str._waitMutex_OpenMutexA__s__function_failed.__d_r_n
push 2
call fcn.0041af8f
add esp, 4
push eax
call fcn.004023ba
add esp, 0x10
pop esi
ret
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x41431f
cmp esi, 0x80
je 0x41431f
push eax
push esi
push str._waitMutex_WaitForSingleObject___function_failed._res:_d__err:_d_r_n
jmp 0x4142e4
push 0
call fcn.0041dc37
int3

Function at 0x420eaf
Capabilities:
Read file on windows

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

Function at 0x423c08
Capabilities:
Set environment variable

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

Function at 0x42cb5b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x101addd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1006ee8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101ae35
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004d40
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101ae28
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101ae37
xor eax, eax
pop esi
leave
ret 4

Function at 0x8ad058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x8ad1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x8ad07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8ad06a
add dl, dl
jne 0x8ad089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8ad0dc
xor eax, eax
add dl, dl
jne 0x8ad096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8ad17d
add dl, dl
jne 0x8ad0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ad0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ad0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ad0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8ad0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x8ad075
mov eax, 1
add dl, dl
jne 0x8ad0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8ad0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8ad0e1
sub eax, ebx
mov ebx, 1
jne 0x8ad128
mov ecx, 1
add dl, dl
jne 0x8ad10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8ad119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8ad105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8ad075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x8ad13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x8ad14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8ad136
cmp eax, 0x7d00
jae 0x8ad16d
cmp eax, 0x500
jb 0x8ad168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8ad075
cmp eax, 0x7f
ja 0x8ad170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x8ad075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x8ad19e
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 0x8ad075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401260
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4040b8], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40127e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4040b4], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4040b0], bl
jne 0x4012d8
cmp dword [0x4050b8], 0
je 0x4012c6
mov edi, dword [0x4050b4]
sub edi, 4
cmp edi, dword [0x4050b8]
jb 0x4012c6
mov eax, dword [edi]
test eax, eax
je 0x4012bb
call eax
sub edi, 4
cmp edi, dword [0x4050b8]
jae 0x4012b3
push 0x404014
push 0x404010
call fcn.00401310
add esp, 8
push 0x40401c
push 0x404018
call fcn.00401310
add esp, 8
test ebx, ebx
jne 0x4012ff
mov dword [0x4040b8], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x401980
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x404160], ebx
jne 0x4019cf
call esi
cmp eax, ebx
mov edi, eax
je 0x4019ad
mov dword [0x404160], 1
jmp 0x4019cf
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x4019c5
mov dword [0x404160], 2
jmp 0x4019cf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x404160], 1
jne 0x401a7e
test edi, edi
jne 0x4019f2
call esi
mov edi, eax
test edi, edi
jne 0x4019f2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x401a0c
add esi, 2
cmp word [esi], 0
jne 0x4019fa
add esi, 2
cmp word [esi], 0
jne 0x4019fa
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x401a6d
push ebp
call fcn.00402370
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x401a6d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x401a5c
push ebx
call fcn.00402320
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x404160], 2
jne 0x401b02
test ebx, ebx
jne 0x401aa1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x401aa1
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x401ab6
inc ebp
cmp byte [ebp], 0
jne 0x401aa8
inc ebp
cmp byte [ebp], 0
jne 0x401aa8
sub ebp, ebx
inc ebp
push ebp
call fcn.00402370
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x401adb
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x402120
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x404390
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x402147
add eax, 8
inc ecx
cmp eax, 0x404420
jb 0x402138
cmp dword [ecx*8 + 0x404390], edx
lea ebx, [ecx*8]
jne 0x40230b
cmp dword [0x404068], 1
je 0x4022c7
cmp dword [0x404068], 0
jne 0x40217e
cmp dword [0x40406c], 1
je 0x4022c7
cmp edx, 0xfc
je 0x40230b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4021bb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4021ff
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4032e0
push ebp
call fcn.00402c20
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4032c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x404394]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00402b80
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x404fb0], 0
je 0x4022dd
mov eax, dword [0x404fb0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4022e7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x404394]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x1002bcb
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10030b0
call fcn.01002d84
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10043c8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002986
cmp eax, esi
jne 0x1002979
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1002989
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1002960
xor esi, esi
inc esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x100299c
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10029cb
mov eax, dword [0x10043c4]
test eax, eax
jne 0x10029c5
mov dword [0x10043c4], esi
push 0x1001118
push 0x100110c
call fcn.010028c2
pop ecx
pop ecx
test eax, eax
je 0x10029cb
jmp 0x1002aef
mov dword [0x1004084], esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x10029ef
push 0x1001108
push 0x1001100
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10043c4], 2
cmp dword [ebp - 0x20], ebx
jne 0x10029fc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10043cc], ebx
je 0x1002a1d
push 0x10043cc
call fcn.01002cf9
pop ecx
test eax, eax
je 0x1002a1d
push ebx
push 2
push ebx
call dword [0x10043cc]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1002aef
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1002a87
cmp cx, bx
je 0x1002a42
cmp dword [ebp - 0x1c], ebx
jne 0x1002a87
movzx ecx, word [eax]
cmp cx, bx
je 0x1002a57
cmp cx, 0x20
ja 0x1002a57
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1002a42
test byte [ebp - 0x40], 1
je 0x1002a63
movzx ecx, word [ebp - 0x3c]
jmp 0x1002a66
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1004080], eax
cmp dword [0x1004074], ebx
jne 0x1002acc
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1002a98
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1002a2c
cmp dword [0x1004084], ebx
jne 0x1002ada
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004080]
jmp 0x1002afb
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002dc9
ret
call fcn.01002ed1
jmp 0x1002923

Function at 0x103a8da0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a8daa
pushal
call 0x103a8db0
pop ebp
sub ebp, 0x10
sub ebp, 0x3a8da0
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a8dd4
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a8ddd
mov eax, 0x3a8da0
add eax, ebp
add eax, 0x63
mov ecx, 0x62d
mov edx, 0x51469512
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a8df4
jmp 0x103a8e07
cdq
fistp word [ecx + 0x12122e9b]
adc dl, byte [ebx + 0x1212ead3]
adc dl, byte [ecx]
fild qword [edx + 0x12121210]
test al, 0x3a
adc dl, byte [edx]
adc ah, ch
invalid