joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bdf3
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 + 0x433940]
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 0x41be39
cmp word [ebx], dx
jne 0x41be39
or byte [eax + edi + 0x28], 4
jmp 0x41be3e
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 0x41bfa1
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 0x41bf81
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41be7f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41beb5
cmp eax, edx
jae 0x41bec3
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 0x41be5a
jmp 0x41bfa1
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 0x41bf7c
cmp dword [ebp - 0x18], 0
je 0x41bf7c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x433940]
test byte [eax + edi + 0x28], 0x48
je 0x41bf52
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 0x41bf16
mov word [esi], cx
jmp 0x41bf4d
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x433940]
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 + 0x433940]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x433940]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41bfa1
pop eax
cmp word [ebp - 4], ax
jne 0x41bf62
cmp esi, ebx
jne 0x41bf62
mov word [esi], ax
jmp 0x41bf9e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c82c
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41bfa1
push 0xd
pop eax
jmp 0x41bf5d
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x433940]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41bf9b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41bfa1
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 0x41e165
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 0x41e202
push ebx
push esi
call fcn.0041e12e
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.0041ce20
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e1af
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e201
push edi
push eax
call fcn.00417c1b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e1cf
call fcn.00417be1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41e200
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ce20
add esp, 0x20
test eax, eax
jne 0x41e1ee
push edi
call fcn.00417be1
jmp 0x41e1f6
push ebx
call fcn.00417be1
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 0x42082f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00416920
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 0x42089e
cmp esi, dword [ebp - 4]
je 0x420899
cmp dword [ebp + 0xc], 0
je 0x420899
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x420876
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00420381
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4208a0
xor eax, eax
inc eax
jmp 0x4208a0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x420905
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x432040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00416920
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00416920
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x42097c
cmp word [ecx], dx
je 0x42097c
mov eax, dword [0x42b79c]
push edi
dec eax
push eax
push 0x42b688
call fcn.004208a4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4209ef
cmp word [eax], dx
je 0x4209ef
mov eax, dword [edi]
test eax, eax
je 0x4209a0
cmp word [eax], dx
je 0x4209a0
lea eax, [ebp - 0x10]
push eax
call fcn.00420287
jmp 0x4209a9
lea eax, [ebp - 0x10]
push eax
call fcn.00420322
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x420a19
mov eax, dword [0x42b684]
push dword [ebp - 0x14]
dec eax
push eax
push 0x42b378
call fcn.004208a4
add esp, 0xc
test al, al
je 0x420a19
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4209e4
cmp word [eax], di
je 0x4209e4
lea eax, [ebp - 0x10]
push eax
call fcn.00420287
pop ecx
jmp 0x420a1b
lea eax, [ebp - 0x10]
push eax
call fcn.00420322
jmp 0x4209e1
mov eax, dword [edi]
test eax, eax
je 0x420a06
cmp word [eax], dx
je 0x420a06
lea eax, [ebp - 0x10]
push eax
call fcn.0042023c
pop ecx
jmp 0x420a19
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x420ae4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00420729
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x420ae4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x420ae4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x420ae4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x420a71
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004194aa
test ebx, ebx
je 0x420adf
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004194aa
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420ae4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420ae4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004237f7
add esp, 0x10
xor eax, eax
inc eax
jmp 0x420ae6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409dab
leave
ret
Function at 0x4254f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42551d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42551d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x415670
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0x148]
push ebp
mov ebp, dword [esp + 0x14]
shl edx, 4
push edi
mov edi, dword [eax + edx + 0x18]
mov al, byte [edi]
test al, al
mov dword [esp + 8], ebp
mov dword [esp + 0x18], edi
je 0x415788
push ebx
push esi
movzx ebx, word [edi + 8]
xor ecx, ecx
mov cl, al
mov al, byte [edi + 2]
test al, al
je 0x4156cf
mov edx, dword [edi + 0x10]
mov esi, dword [esp + 0x24]
test byte [esi + edx], al
je 0x4156ca
mov byte [ebp], 0
inc ebp
jmp 0x415774
mov byte [ebp], 1
inc ebp
mov eax, dword [esp + 0x24]
mov esi, dword [edi + 0xc]
add esi, eax
mov ax, word [edi + 6]
test al, 1
je 0x415740
cmp ecx, 7
lea eax, [esi + ebx]
je 0x4156fd
cmp eax, esi
jbe 0x41570b
lea esp, [esp]
cmp byte [eax - 1], 0x20
jne 0x41570b
dec eax
cmp eax, esi
ja 0x4156f0
jmp 0x41570b
cmp esi, eax
jae 0x41570b
cmp byte [esi], 0x20
jne 0x41570b
inc esi
cmp esi, eax
jb 0x415701
sub eax, esi
cmp eax, 0xff
jae 0x41571a
mov byte [ebp], al
inc ebp
jmp 0x41572c
mov ecx, eax
shr ecx, 8
mov byte [ebp], 0xff
mov byte [ebp + 2], al
mov byte [ebp + 1], cl
add ebp, 3
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, eax
jmp 0x41576e
test al, 8
je 0x4157c0
movzx eax, word [esi]
add esi, 2
cmp ebx, eax
jbe 0x415750
mov ebx, eax
cmp ebx, 0xff
jae 0x4157ac
mov byte [ebp], bl
inc ebp
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add ebp, ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x20]
mov al, byte [edi + 0x18]
add edi, 0x18
test al, al
mov dword [esp + 0x20], edi
jne 0x4156a5
pop esi
pop ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push eax
push ecx
push ebp
push edx
call fcn.00410ab0
mov ecx, dword [esp + 0x18]
add esp, 0x10
mov eax, ebp
pop edi
sub eax, ecx
pop ebp
pop ecx
ret
mov byte [ebp], 0xff
mov eax, ebx
shr eax, 8
mov byte [ebp + 2], bl
mov byte [ebp + 1], al
add ebp, 3
jmp 0x41575c
test al, 0x20
je 0x4157de
movzx ecx, byte [edi + 3]
push esi
push ecx
call fcn.00417fc0
movzx edx, byte [edi + 3]
mov esi, dword [edx + esi]
add esp, 8
jmp 0x41574a
test al, 0x40
je 0x41575c
cmp ecx, 5
jne 0x415822
mov ecx, dword [esi]
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x1c]
sub esp, 8
fstp qword [esp]
call fcn.0042ea45
add esp, 8
test eax, eax
je 0x415855
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add ebp, ebx
jmp 0x415770
cmp ecx, 6
jne 0x415855
mov ecx, dword [esi + 4]
mov eax, dword [esi]
push ecx
push eax
call fcn.0042ea45
add esp, 8
test eax, eax
je 0x415855
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
add ebp, ebx
jmp 0x415770
add esi, ebx
test ebx, ebx
je 0x415774
nop
mov al, byte [esi - 1]
dec esi
mov byte [ebp], al
inc ebp
dec ebx
jne 0x415860
jmp 0x415774
Function at 0x426190
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, edi
shl eax, 5
lea ebp, [eax + 0x458f58]
jmp 0x4261b0
mov edi, dword [esp + 0x14]
lea esp, [esp]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push 0
push ecx
push edx
push edi
or esi, 0xffffffff
call fcn.0042f980
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
je 0x4261f3
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ebx
push eax
push edi
call fcn.00437e88
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x4261f3
xor edi, edi
jmp 0x4261f8
mov edi, 1
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
mov ebx, dword [esp + 0x28]
je 0x426299
call fcn.0042e62b
mov edi, eax
call fcn.004260a0
test esi, esi
mov ecx, dword [edi]
mov dword [eax], ecx
jne 0x42622d
call fcn.0042e62b
cmp dword [eax], 4
je 0x4261a5
test bl, 0x1a
je 0x426287
cmp esi, 0xffffffff
jne 0x426260
call fcn.004260a0
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.0042a290
add esp, 4
push eax
push 0x24
push 2
call fcn.00429f20
add esp, 0x10
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
test bl, 6
je 0x426287
call fcn.004260a0
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.0042a290
add esp, 4
push eax
push 0x24
push 9
call fcn.00429f20
add esp, 0x10
cmp esi, 0xffffffff
je 0x426291
test bl, 6
je 0x426299
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
and bl, 6
neg bl
pop edi
sbb ebx, ebx
not ebx
and ebx, esi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x426460
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x42646f
mov edi, 1
push edi
call fcn.0042fa76
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4264c3
push esi
call fcn.0042e62b
mov esi, eax
call fcn.004260a0
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x4264a6
mov edx, dword [fcn.0042a080]
mov dword [fcn.0042a080], edx
test al, 0x18
je 0x4264b7
push edi
push 0x24
push 5
call fcn.00429f20
add esp, 0xc
test esi, esi
pop esi
je 0x4264de
push 1
call fcn.0042d975
test byte [esp + 0x10], 0x20
je 0x4264de
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x426a50
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0042e62b
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00437e88
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x426b23
call fcn.0042e62b
cmp dword [eax], 0
je 0x426a97
call fcn.0042e62b
mov ebp, dword [eax]
jmp 0x426a9a
or ebp, 0xffffffff
call fcn.004260a0
test esi, esi
mov dword [eax], ebp
jne 0x426aaf
call fcn.0042e62b
cmp dword [eax], 4
je 0x426aff
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x426ae2
cmp esi, 0xffffffff
je 0x426b34
test al, 6
je 0x426ae2
call fcn.004260a0
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0042a290
add esp, 4
push eax
push 0x24
push 9
call fcn.00429f20
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x426b52
test al, 6
je 0x426af0
test ah, 2
je 0x426b52
test esi, esi
jbe 0x426b27
test ah, 2
je 0x426b27
add dword [esp + 0x18], esi
sub edi, esi
call fcn.0042e62b
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00437e88
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x426a84
mov eax, dword [esp + 0x20]
test al, 6
je 0x426b5a
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call fcn.004260a0
mov eax, dword [eax]
push eax
push ebx
call fcn.0042a290
add esp, 4
push eax
push 0x24
push 2
call fcn.00429f20
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test ah, 2
je 0x426b63
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x430572
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042e5b8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x430595
test byte [esp + 8], 2
je 0x430595
call fcn.0042e62b
mov dword [eax], 0xd
call fcn.0042e634
mov dword [eax], 5
jmp 0x43056e
xor eax, eax
ret
Function at 0x432b45
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x455c70
cmp edx, dword [eax]
je 0x432b67
add eax, 8
inc ecx
cmp eax, 0x455d00
jl 0x432b58
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x455c70]
jne 0x432c95
mov eax, dword [0x4695b8]
cmp eax, 1
je 0x432c6f
test eax, eax
jne 0x432b98
cmp dword [0x4554b4], 1
je 0x432c6f
cmp edx, 0xfc
je 0x432c95
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432bcf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00433580
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00431a40
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x432c12
lea eax, [ebp - 0x1a4]
push eax
call fcn.00431a40
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43b6d4
push edi
call fcn.00433480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00433580
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00433590
lea eax, [ebp - 0xa0]
push 0x43b6b4
push eax
call fcn.00433590
push dword [esi + 0x455c74]
lea eax, [ebp - 0xa0]
push eax
call fcn.00433590
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004375e1
add esp, 0x2c
pop edi
jmp 0x432c95
lea eax, [ebp + 8]
lea esi, [esi + 0x455c74]
push 0
push eax
push dword [esi]
call fcn.00431a40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp int.00401219
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x2c3374f9
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3d7c6106
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

Function at 0x430001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x291315e0
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x11d87733
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x6f8a69e6
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x45376209
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp int.00401219
Function at 0x403140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4ad020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031d8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031b8
xor eax, eax
push ebp
push 0x4031b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4031f4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4031b8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4ad020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4ad020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403fc4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4af04c], 0
je 0x404025
cmp word [0x4af220], 0xd7b2
jne 0x403fed
cmp dword [0x4af228], 0
jbe 0x403fed
mov eax, 0x4af21c
call dword [0x4af238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4ad06c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40404c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ad030], 0
jne 0x404041
push 0
push 0x4ad064
push 0x4ad06c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret