joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4310ff
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x431118
or eax, 0xffffffff
jmp 0x431179
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x431175
push 0x3d
push esi
call fcn.004312ff
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x431175
cmp esi, eax
je 0x431175
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x46ee70]
sete cl
cmp eax, dword [0x46ee74]
mov dword [ebp - 8], ecx
jne 0x43115b
mov edi, eax
call fcn.0043109e
mov dword [0x46ee70], eax
cmp eax, ebx
jne 0x4311b4
cmp dword [ebp + 0xc], ebx
je 0x43117d
cmp dword [0x46ee78], ebx
je 0x43117d
call fcn.00430acf
test eax, eax
je 0x4311b4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x431186
xor eax, eax
jmp 0x431178
push 4
call fcn.00424c7b
cmp eax, ebx
pop ecx
mov dword [0x46ee70], eax
je 0x431175
mov dword [eax], ebx
cmp dword [0x46ee78], ebx
jne 0x4311b4
push 4
call fcn.00424c7b
cmp eax, ebx
pop ecx
mov dword [0x46ee78], eax
je 0x431175
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x46ee70]
call fcn.00431051
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x431215
cmp dword [esi], ebx
je 0x431215
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00424c8d
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4311f8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x431256
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4311ef
mov eax, edi
shl eax, 2
push eax
push dword [0x46ee70]
call fcn.00424db8
cmp eax, ebx
pop ecx
pop ecx
je 0x431256
jmp 0x431251
cmp dword [ebp - 8], ebx
jne 0x4312c1
cmp edi, ebx
jge 0x431224
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x46ee70]
call fcn.00424db8
cmp eax, ebx
pop ecx
pop ecx
je 0x431175
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x46ee70], eax
cmp dword [ebp + 0xc], ebx
je 0x4312ab
push dword [ebp - 4]
call fcn.00423b90
inc eax
inc eax
push eax
call fcn.00424c7b
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4312ab
push dword [ebp - 4]
push esi
call fcn.00423c20
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4312a4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00424c8d
pop ecx
cmp dword [ebp - 8], ebx
je 0x4312b9
push dword [ebp - 4]
call fcn.00424c8d
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x431178
push dword [ebp - 4]
call fcn.00424c8d
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x431182
Function at 0xe4f038
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe4f042
pushal
call 0xe4f048
pop ebp
sub ebp, 0x10
sub ebp, 0xa4f038
jmp 0xe4f05e
mov eax, 0xa4f038
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b8
mov edx, 0xe1a235bd
xor byte [eax], dl
inc eax
dec ecx
jne 0xe4f075
jmp 0xe4f088
jo 0xe4f0c1
xor al, 0x81
mov ebp, 0x7c3cbdbd
inc ebp
mov ebp, 0x70bebdbd
add eax, 0xbdbdbdba
pop es
xchg ebp, eax
mov ebp, 0x5f4abdbd
mov esi, 0xb13c3675
mov ebp, 0x78bebdbd
xor cl, bl
cdq
inc ecx
xor al, 0xb9
cdq
xor cl, bl
cdq
inc ecx
xor al, 0xb9
cdq
aad 0x19
mov cl, 0x9f
mov ebp, 0x3f5e29d5
aad 0x29
pop esi
aas
mov ebp, 0xd59991bc
sal byte [0xb8556b78], 1
mov ebp, 0x9354bdbd
mov ebp, 0xe9e8bdbd
loopne 0xe4f112
cmp byte [ebp + 0x36bdbdbd], dh
sub byte [ecx + 0x36bdbdbd], dh
xor byte [ebp + 0x7cbdbdbd], ch
push esp
mov edi, 0x7f3ebf8c
mov ecx, 0x4938b2f4
inc edx
inc edx
inc edx
xchg ecx, eax
cdq
xor cl, bl
cdq
mov ecx, 0x36bdb17f
xor dword [ecx - 0x42424247], ebx
aad 0x19
mov cl, 0x9f
mov ebp, 0x3f5e29d5
aad 0x29
pop esi
aas
mov ebp, 0xec9991bc
push ebp
mov eax, 0x54bdbdbd
clc
mov edi, 0x36e8bdbd
push ecx
inc edx
enter 0x42b1, 0xffffffffffffffc8
mov ch, 0x55
lds edi, [ebp + 0x36bdbd]
mov ch, 0xbd
mov ebp, 0x3c748ebd
dec edi
adc dword [edi + 0x4f3cb1af], ecx
adc dword [edi + 0x6f8eb1af], ecx
push ebp
mov eax, 0xf339b2f5
mov ebp, 0x35b2bdbd
cmc
mov ebp, 0x36dbbdbd
mov eax, dword [0x55463d84]
mov dl, 0x39
cmpsd dword [esi], dword es:[edi]
mov ebp, 0x463dbdbd
push esp
mov dl, 0x39
lodsb al, byte [esi]
mov ebp, 0x3cdbbdbd
inc esi
inc edx
cwde
mov dl, 0x39
test al, 0xbd
mov ebp, 0x7154fcbd
inc edx
inc edx
inc edx
xchg esp, eax
int1
test byte [esi + edi + 0x553eb87c], bh
mov ecx, 0x42420054
inc edx
xchg esp, eax
jmp 0x7d23b119
Function at 0x402586
Capabilities:
Terminate process

Disassembly:
jmp 0x442500
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x442511
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00403990
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x402621
Capabilities:
Query environment variable

Disassembly:
jmp 0x44a499
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x44a4aa
pop esi
ret
push ebx
push edi
push esi
call fcn.0044a380
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00402b3f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x44a4d2
push ebx
push esi
push edi
call fcn.00403855
add esp, 0xc
push 0
call fcn.00403e86
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4038c3
Capabilities:
Parse pe header

Disassembly:
jmp 0x40970e
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40974d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40974d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40974d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40974d
cmp dword [ecx + 0x74], 0xe
jbe 0x40974d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43b8c2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b901
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b901
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b901
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b901
cmp dword [ecx + 0x74], 0xe
jbe 0x43b901
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4484a3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
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 0x4484ee
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004489a4
test al, al
jne 0x4484e8
sub edx, 2
cmp edx, edi
jne 0x4484ce
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x448510
lea eax, [edi + 2]
cmp edx, eax
je 0x448510
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044809c
add esp, 0x10
jmp 0x44860a
push esi
lea ecx, [ebp - 0x255]
call fcn.004489a4
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 0x448553
push dword [ebp - 0x25c]
jmp 0x448500
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 0x448590
cmp word [ebp - 0x226], 0
je 0x4485b1
cmp word [ebp - 0x226], ax
jne 0x448590
cmp word [ebp - 0x224], 0
je 0x4485b1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044809c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4485fd
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44856a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4485e5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44860a
push 0x447982
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00403760
add esp, 0x10
jmp 0x4485da
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.00402275
leave
ret

Function at 0x44eed0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00402d29
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44ef3f
cmp esi, dword [ebp - 4]
je 0x44ef3a
cmp dword [ebp + 0xc], 0
je 0x44ef3a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x44ef17
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044e8f8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x44ef41
xor eax, eax
inc eax
jmp 0x44ef41
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x45b42d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x47a0e8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45b46d
cmp byte [ebx], 0xa
jne 0x45b46d
or byte [edi + eax + 0x28], 4
jmp 0x45b472
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x45b571
mov dl, byte [eax]
cmp dl, 0x1a
je 0x45b554
inc eax
cmp dl, 0xd
je 0x45b49e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x45b4c4
cmp eax, ecx
jae 0x45b4d2
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x45b486
jmp 0x45b571
push 0
lea eax, [ebp - 0x10]
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 0x45b54f
cmp dword [ebp - 0x10], 0
je 0x45b54f
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47a0e8]
test byte [eax + edi + 0x28], 0x48
je 0x45b529
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x45b514
mov byte [esi], dl
jmp 0x45b525
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47a0e8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x45b571
cmp byte [ebp - 1], 0xa
jne 0x45b538
cmp esi, ebx
jne 0x45b538
mov byte [esi], 0xa
jmp 0x45b570
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040153c
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45b571
mov byte [esi], 0xd
jmp 0x45b570
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47a0e8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x45b56e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x45b571
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x45b5cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x47a0e8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x45b613
cmp word [ebx], dx
jne 0x45b613
or byte [eax + edi + 0x28], 4
jmp 0x45b618
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x45b77b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x45b75b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x45b659
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x45b68f
cmp eax, edx
jae 0x45b69d
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x45b634
jmp 0x45b77b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45b756
cmp dword [ebp - 0x18], 0
je 0x45b756
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47a0e8]
test byte [eax + edi + 0x28], 0x48
je 0x45b72c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x45b6f0
mov word [esi], cx
jmp 0x45b727
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47a0e8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x47a0e8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47a0e8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x45b77b
pop eax
cmp word [ebp - 4], ax
jne 0x45b73c
cmp esi, ebx
jne 0x45b73c
mov word [esi], ax
jmp 0x45b778
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040153c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x45b77b
push 0xd
pop eax
jmp 0x45b737
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47a0e8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x45b775
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x45b77b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408902
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408902
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408902
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408902
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408902
mov dword [0x41203c], eax
call fcn.00408902
test eax, eax
jge 0x402550
push 8
call fcn.00408902
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408902
pop ecx
push 1
call fcn.00408902
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408902
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408902
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408902
jmp 0x402495

Function at 0x408902
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x408911
pop dword [ebp - 0x20]
mov eax, 0x408911
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x36a71
push 0
mov eax, 0xa4eba574
sub eax, 0xa4aac49c
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x3dc5
xor ebx, ebx
add ebx, eax
mov edi, 0x6c4ee68
add edi, 0xf97c4d5c
add edi, dword [ebp - 0x20]
mov edx, 0xeb125285
add edx, 0xb9cafebd
mov dword [ebp - 0xc], 0xf25b3188
mov esi, dword [edi]
xor dword [ebp - 0x14], ecx
xor esi, edx
mov dword [ebp - 0xc], 0x4ab12c1c
mov dword [ebx], esi
mov dword [ebp - 0x1c], 0xef2590e0
add ebx, 4
add edi, 0x5dc294d5
sub edi, 0x5dc294d1
loop 0x408967
add eax, 0x9d086c11
sub eax, 0x9d07822a
xor ebx, ebx
add ebx, eax
add eax, 0xe373e13
add eax, 0xf1c8c1f2
mov ecx, 0xa3b24d23
add ecx, 0x5c8db2dd
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4023c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x402868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov eax, dword [esp + 0x18]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x402439
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 4]
push 0
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov al, 1
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 8]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x402460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x402890
push eax
mov dword fs:[0], esp
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x24], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x402509
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x402509
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x402509
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, ebx
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString
call fcn.004023c0
add esp, 0xc
test al, al
push ebp
jne 0x40253d
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
xor al, al
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x20]
mov byte [esp + 0x18], 0
call fcn.00402600
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 0xffffffff
call fcn.00402600
mov ecx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x402439
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402498
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x402490
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x402490
mov eax, dword [ebp - 4]
jmp 0x4024ac
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40246d
mov eax, 0
leave
ret

Function at 0xe5f4bc
Capabilities:
Encode data using xor

Disassembly:
and dword [ecx], ebx
add bh, byte [eax - 6]
les edi, [edx - 0x5a]
mul dl
arpl word [ebx - 0x2e75753e], dx
mov bh, 0x27
mov esp, 0x5f5b74c6
adc eax, 0x15f4ff4
hlt
mov edi, dword [edx + 0x3f]
dec esi
lds eax, [eax - 0x7e85ba35]
xlatb
inc esi
jbe 0xe5f434
and bl, 0x60
jecxz 0xe5f514
cmp eax, 0xeb753f9d
aas
jne 0xe5f4a4
pushfd
rcr al, 0xeb
jmp 0xe5f4c6
add byte [eax + 7], dl
add byte [eax], al
pushal
call 0xe5f4cc
jmp 0xe5f4c6
pushal
call 0xe5f4cc
pop ebp
sub ebp, 0x10
sub ebp, 0xa5f4bc
jmp 0xe5f4e2
mov eax, 0xa5f4bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0x2d6de82c
xor byte [eax], dl
inc eax
dec ecx
jne 0xe5f4f9
jmp 0xe5f50c
cmpsd dword [esi], dword es:[edi]
loope 0xe5f4b6
movsd dword es:[edi], dword [esi]
adc byte [esp + ebp], ch
sub al, 0xad
lodsd eax, dword [esi]
in eax, dx
aam 0x2c
sub al, 0x2c
das
loope 0xe5f4b1
sub ebp, dword [esp + ebp]
sub al, 0x96
add al, 0x2c
sub al, 0x2c
fcmovne st(0), st(6)
das
in al, 0xa7
lodsd eax, dword [esi]
and byte [esp + ebp], ch
sub al, 0x2f
jmp 0xd0ee3dd7
Function at 0x5e31065
Capabilities:
Identify system language via api

Disassembly:
push 0x154dee1d
call fcn.05e31000
push 0xf902717
call fcn.05e31000

Function at 0x5e31083
Capabilities:
Identify system language via api

Disassembly:
push 0x752494b0
call fcn.05e31000

Function at 0x5e3108d
Capabilities:
Identify system language via api

Disassembly:
push 0xd4292d45
call fcn.05e31000

Function at 0x5e31097
Capabilities:
Identify system language via api

Disassembly:
push 0xc62ec9b7
call fcn.05e31000
push 0x83139995
call fcn.05e31000

Function at 0x5e310ab
Capabilities:
Identify system language via api

Disassembly:
push 0xc350e9c3
call fcn.05e31000

Function at 0x5e310b5
Capabilities:
Identify system language via api

Disassembly:
push 0x3b952107
call fcn.05e31000

Function at 0x5e310bf
Capabilities:
Identify system language via api

Disassembly:
push 0x484d3ab5
call fcn.05e31000

Function at 0x5e310c9
Capabilities:
Identify system language via api

Disassembly:
push 0x28b32619
call fcn.05e31000

Function at 0x5e310d3
Capabilities:
Identify system language via api

Disassembly:
push 0x8ac4201
call fcn.05e31000

Function at 0x5e310dd
Capabilities:
Identify system language via api

Disassembly:
push 0xba84b62c
call fcn.05e31000
nop