joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010e0f
Capabilities:
Terminate process

Disassembly:
push 0x81c
mov eax, 0x1002a74e
call fcn.10016280
mov esi, ecx
xor edi, edi
xor ebx, ebx
and dword [ebp - 0x814], edi
cmp dword [esi + 0x40], ebx
je 0x10010f3b
push 0x10
lea eax, [ebp - 0x828]
push ebx
push eax
call fcn.10016100
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
push str.Caption
push dword [esi + 0x40]
lea eax, [ebp - 0x828]
mov dword [ebp - 4], edi
push eax
push 2
push esi
call fcn.1001e573
add esp, 0x18
test eax, eax
jne 0x10010ea5
push dword [ebp - 0x820]
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.1001e573
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push edi
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
mov eax, dword [esi]
lea ecx, [ebp - 0x814]
push ecx
mov ecx, esi
call dword [eax + 0x2c]
mov edi, eax
test edi, edi
js 0x10010edb
cmp dword [ebp - 0x814], 0
jne 0x10010edb
push 0
push str.Quit
push dword [esi + 0x40]
push 0
push 1
push esi
call fcn.1001e573
add esp, 0x18
mov edi, eax
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x10010eec
and dword [esi + 0x40], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test ebx, ebx
je 0x10010f3b
cmp dword [ebp - 0x814], 0
jne 0x10010f3b
test edi, edi
jns 0x10010f3b
and dword [ebp - 0x818], 0
lea eax, [ebp - 0x818]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x818]
push 1
push 0x1fffff
call dword [sym.imp.kernel32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov eax, edi
call fcn.1001622f
ret
Function at 0x10012866
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002aa12
call fcn.10016280
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10012883
xor eax, eax
jmp 0x10012959
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x10012957
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x1001292d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x240]
call fcn.1001249d
push ebx
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], edi
call fcn.1001249d
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.100129db
lea ecx, [ebp - 0x244]
call fcn.100129db
push dword [ebp - 0x240]
lea ecx, [ebp - 0x244]
call fcn.1001e573
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
test eax, eax
je 0x10012937
call fcn.10012ac9
mov ecx, dword [ebp - 0x240]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10012ac9
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x100128b0
jmp 0x10012950
mov edi, dword [ebp - 0x234]
call fcn.10012ac9
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.10012ac9
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.1001622f
ret

Function at 0x1001e573
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1001e582
pop dword [ebp - 0x10]
mov eax, 0xa96878a6
add eax, 0x66996cdc
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3e960
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x4681
mov edx, eax
mov edi, 0xb6e2445
sub edi, 0xfb699a45
add edi, dword [ebp - 0x10]
mov esi, 0xce7c5efa
sub esi, 0x3a292c48
xor dword [ebp - 0xc], 0x948f11cd
mov ebx, dword [edi]
xor dword [ebp - 8], edx
xor ebx, esi
mov dword [ebp - 4], 0xedcf9845
mov dword [edx], ebx
xor dword [ebp - 0xc], 0xb19fde6
add edx, 0x84e54f07
sub edx, 0x84e54f03
add edi, 4
loop 0x1001e5d6
add eax, 0xdfe9b601
sub eax, 0xdfe8a92a
xor ebx, ebx
add ebx, eax
add eax, 0x52b7c086
add eax, 0xad483f7f
mov ecx, 0xee7c3650
add ecx, 0x2183c9b0
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x6c596750
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x6c596914
pushal
mov esi, 0x6c593015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x6c59677a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6c596781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c596770
mov eax, 1
add ebx, ebx
jne 0x6c596793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6c596788
jne 0x6c5967a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6c596788
xor ecx, ecx
sub eax, 3
jb 0x6c5967b8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6c59682a
mov ebp, eax
add ebx, ebx
jne 0x6c5967c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x6c5967d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x6c5967f4
inc ecx
add ebx, ebx
jne 0x6c5967e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6c5967d5
jne 0x6c5967f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6c5967d5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6c596814
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6c596805
jmp 0x6c596776
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6c596814
add edi, ecx
jmp 0x6c596776
pop esi
mov edi, esi
mov ecx, 0x32
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6c596832
cmp byte [edi], 0
jne 0x6c596832
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 0x6c596837
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x6c5968a6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6c596864
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16054]
or eax, eax
je 0x6c5968a0
mov dword [ebx], eax
add ebx, 4
jmp 0x6c596881
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6c5968d7
cmp al, 0xef
ja 0x6c5968ca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6c5968ac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6c5968b9
mov ebp, dword [esi + 0x16058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x6c59690b
sub esp, 0xffffff80
jmp 0x6c5818c0
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x1002aaee
pop dword [ebp - 0x1c]
mov eax, 0x1002aaee
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x70aea8c3
add dword [ebp - 0x2c], 0xdda39c88
mov dword [ebp - 0x28], 0xd67ff810
add dword [ebp - 0x28], 0x5bb35435
mov dword [ebp - 0x24], 0x31a98e5a
sub dword [ebp - 0x24], 0xe55d4a2c
mov dword [ebp - 0x20], 0xc30d5df5
sub dword [ebp - 0x20], 0xc30d5df5
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xc6b8620f
sub dword [ebp - 0x2c], 0x5245f8b9
mov dword [ebp - 0x28], 0x353ce042
sub dword [ebp - 0x28], 0xf3d07ecd
mov dword [ebp - 0x24], 0x552c57b3
sub dword [ebp - 0x24], 0xf1bceb47
mov dword [ebp - 0x20], 0x4a58f0a3
sub dword [ebp - 0x20], 0x4a58f0a3
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a954
push 0
call eax
mov ecx, 0x2e3bb53d
add ecx, 0xd1c4a339
mov esi, eax
mov edx, 0xf00311a7
add edx, 0x20008459
add edx, dword [ebp - 0x1c]
mov edi, 0x38a04617
add edi, 0x9716e35a
sub dword [ebp - 8], edx
mov ebx, dword [edx]
mov dword [ebp - 0xc], 0x69a98940
xor ebx, edi
mov dword [ebp - 0x18], 0xc959f605
mov dword [esi], ebx
sub dword [ebp - 8], 0x75f9f42a
add esi, 4
add edx, 0x5a28ce54
add edx, 0xa5d731b0
loop 0x1002ac01
add eax, 0x154ab
xor ebx, ebx
add ebx, eax
add eax, 0xbd1b74bb
sub eax, 0xbd1b74b6
mov ecx, 0xfccf7554
sub ecx, 0xeccf7554
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x47011b89
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x29cd57fe
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x469fc7
Capabilities:
Encode data using xor

Disassembly:
cdq
aaa
lcall 0xd2a2, 0x74ce4f53
or al, 0xfb
loop 0x46a032
leave
pop esp
jge 0x469ffc
retf
sal dl, 1
invalid
outsd dx, dword [esi]
cmpsd dword [esi], dword es:[edi]
or ah, ah
lodsb al, byte [esi]
in al, 0xac
cmpsd dword [esi], dword es:[edi]
and al, 0xaa
shl dword [ebx + 0x5a], 0x75
lodsb al, byte [esi]
sub ecx, dword [edi - 0x5977f846]
bound ecx, qword [edx + 0x44]
xlatb
imul edx, dword [edi], 0xffffffd3
adc al, dh
not edx
xor dword es:[eax + 0x2b638e13], 0x25ef9c4
mov esi, edi
inc esp
inc ecx
adc byte [ecx - 0x1d], 0xa
mov dl, 0xe3
sbb dword [edx], ecx
cmp bl, byte fs:[ecx]
pushfd
push 0xffffffffffffffde
sbb ah, byte [eax]
sub dword [edi], esi
or eax, edi
xor bh, byte [esp + edi - 0x1428bcda]
push edx
bound ecx, qword [esi + 0x1dadb4a1]
inc ebp
adc dword [esi + eax*4 - 0x281d06ba], esi
loop 0x46a02f
dec edi
sal eax, cl
invalid

Function at 0x5bf497
Capabilities:
Encode data using xor

Disassembly:
bound eax, qword [ebp + 0x7e]
iretd
lea eax, [edi + 0x26]
jne 0x5bf40b
nop
les ebx, [eax - 0x3a]
mov al, byte [0xaa1370e2]
inc ecx
and eax, 0xe5d72970
xchg ecx, eax
shr dword [ebx + ecx*2], 0x3d
sal dword [eax], 0xc2
cmp byte [ebx - 0x1b9b68b6], ch
xor byte [edx - 0x2d3d610a], dh
and ah, byte [ebp - 0x465aba35]
pop esi
jl 0x5bf4dc
adc esi, dword [ebx]
sub edx, edi
xor dword [esi + 0x214d4c29], edi
retf 0x23dc
je 0x5bf436
cwde
cwde
ljmp 0x42cc
adc al, 0xd7
mov bl, 0x13
mov ebx, 0x54caa66
pop ebx
push 0x7b
push edx
stosb byte es:[edi], al
dec esp
add eax, 0x527b6a5b
xchg byte [eax - 0x6d3d91fb], cl
or al, dl
xor al, 0xe5
mov word [eax + 0x3f], es
pop ecx
not byte [ecx]
adc bl, dl
dec ebp
movsd dword es:[edi], dword [esi]
jb 0x5bf4e3
push ss
dec edx
adc esp, ebp
jle 0x5bf507
nop
mov eax, 0x184c6610
add bh, dl
imul ebp, ebx, 0xb141a724
and byte [ecx], 0xb2
mov dh, 0x7d
cmpsb byte [esi], byte es:[edi]
invalid

Function at 0x629057
Capabilities:
Encode data using xor

Disassembly:
or dl, 0xa5
jns 0x62908c
xor al, 0xaf
aad 0x14
xchg ecx, eax
invalid
mov al, 0x61
cdq
ljmp 0xc69b
Function at 0x421a70
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0041c360
lea ecx, [ebp - 4]
call fcn.00421970
movzx eax, al
test eax, eax
jne 0x421aad
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.00421950
mov eax, dword [ebp - 0x14]
jmp 0x421b67
lea ecx, [ebp - 4]
call fcn.00424780
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004219f0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.00415490
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0041c360
lea ecx, [ebp - 8]
call fcn.00416fb0
movzx ecx, al
test ecx, ecx
jne 0x421b1d
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.00416780
lea ecx, [ebp - 4]
call fcn.00421950
mov eax, dword [ebp - 0x1c]
jmp 0x421b67
lea ecx, [ebp - 4]
call fcn.00424780
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.00424780
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00433530
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00418390
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.00416780
lea ecx, [ebp - 4]
call fcn.00421950
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret

Function at 0x422ca0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004225d0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422cd4
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x435138]
call dword [ebp - 8]
jmp 0x422cda
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x422d30
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00422610
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422d64
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x435138]
call dword [ebp - 8]
jmp 0x422d6e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4
Function at 0x422d80
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00422630
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422db8
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x435138]
call dword [ebp - 8]
jmp 0x422dc6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8
Function at 0x42ed90
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004331f0
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4d5670]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x42ef68
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x42eeb7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x42eeb7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x42ee95
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x42ee19
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42ef21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x42ef88
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x42ef63
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x42ef88
jmp 0x42edf2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403740
mov esp, ebp
pop ebp
ret
Function at 0x42efa0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004331f0
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x4d5670]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x42f18b
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x42f0d6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x42f0d6
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x42f0b2
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x42f029
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42f144
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x42f1ab
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x42f186
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x42f1ab
jmp 0x42f002
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403740
mov esp, ebp
pop ebp
ret
Function at 0x40167e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2da3134]
sub esp, 0x400
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2da2b2c]
test esi, esi
je 0x4016c9
cmp eax, 0x959
jne 0x4016b5
push 0
lea eax, [ebp - 0x400]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, edi
call fcn.00401481
add edi, 8
dec esi
je 0x4016c9
mov eax, dword [0x2da3134]
jmp 0x40169d
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4