joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c5fb0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
push ebx
push esi
mov esi, dword [esp + 0x30]
push edi
push ebp
push esi
call dword [0x4f6bb0]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push edi
call dword [0x4f68d8]
mov ecx, dword [esp + 0x14]
push 0
mov eax, dword [esp + 0x14]
push ecx
push eax
xor ebx, ebx
push edi
call dword [0x4f6888]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
push esi
mov dword [esp + 0x34], ecx
call fcn.004c64d0
mov ebp, dword [esp + 0x40]
add esp, 4
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ecx
push eax
push ebp
call dword [0x4f6ce4]
cmp eax, ebx
je 0x4c6029
cmp ebx, 1
sbb ebx, ebx
neg ebx
push ebx
push ebp
push edi
call fcn.004c5ab0
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push 0
push esi
push eax
call dword [0x4f6afc]
mov eax, dword [esp + 0x1c]
cmp eax, 0x1f
je 0x4c6056
cmp eax, 0x202
je 0x4c6056
push 1
call dword [0x4f6af4]
test ah, 0x80
jne 0x4c6002
test ebx, ebx
je 0x4c606f
push 0
push ebp
push edi
call fcn.004c5ab0
add esp, 0xc
cmp dword [esp + 0x1c], 0x1f
jne 0x4c606f
xor ebx, ebx
call fcn.004c64f0
push edi
push esi
call dword [0x4f6cf4]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x24
ret

Function at 0x4c6e10
Capabilities:
Hide graphical window

Disassembly:
push esi
call fcn.004c6e80
test ax, ax
je 0x4c6e7d
cmp dword [0x4eb7b4], 0
jne 0x4c6e7d
call fcn.004c6d80
test eax, eax
je 0x4c6e7d
push 0xfffffffffffffff0
mov eax, dword [0x4f0ba4]
push eax
call dword [0x4f6c98]
or eax, 0x10000
mov ecx, dword [0x4f0ba4]
push eax
push 0xfffffffffffffff0
push ecx
call dword [0x4f6c90]
push 3
mov ecx, dword [0x4f0ba4]
mov dword [0x4eb7b0], 1
push ecx
call dword [0x4f6c20]
mov dword [0x4eb7b0], 0
mov dword [0x4eb7b4], 1
pop esi
ret

Function at 0x4c6ea0
Capabilities:
Hide graphical window

Disassembly:
call fcn.004c6e80
test ax, ax
je 0x4c6ee6
push 1
mov eax, dword [0x4f0ba4]
push eax
call dword [0x4f6c20]
push 0xfffffffffffffff0
mov ecx, dword [0x4f0ba4]
push ecx
call dword [0x4f6c98]
and eax, 0xfffeffff
mov ecx, dword [0x4f0ba4]
push eax
push 0xfffffffffffffff0
push ecx
call dword [0x4f6c90]
mov dword [0x4eb7b4], 0
ret
Function at 0x4dad00
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x4dad73
push ebx
call fcn.004dae30
add esp, 4
test eax, eax
jne 0x4dad41
xor eax, eax
pop edi
mov dword [0x4ec458], 0xf
mov dword [0x4ec454], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [0x4f6984]
jmp 0x4dad83
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [0x4f697c]
test eax, eax
je 0x4dae22
inc eax
cmp eax, 0x104
ja 0x4dae22
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x4dadd4
mov ecx, dword [esp + 0x124]
cmp ecx, eax
jg 0x4dadaf
mov ecx, eax
push ecx
call fcn.004dd140
add esp, 4
mov edx, eax
test edx, edx
jne 0x4dadf3
xor eax, eax
pop edi
mov dword [0x4ec454], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp dword [esp + 0x124], eax
jge 0x4dadf3
xor eax, eax
pop edi
mov dword [0x4ec454], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret

Function at 0x4dae30
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x4dae44
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [0x4f69fc]
test eax, eax
je 0x4dae76
cmp eax, 1
je 0x4dae76
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret
Function at 0x4dc766
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7fd0
push 0x4e1394
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [0x4f6a98]
mov dword [0x4ec460], eax
xor eax, eax
mov al, byte [0x4ec461]
mov dword [0x4ec46c], eax
mov eax, dword [0x4ec460]
shr dword [0x4ec460], 0x10
and eax, 0xff
mov dword [0x4ec468], eax
shl eax, 8
add eax, dword [0x4ec46c]
mov dword [0x4ec464], eax
call fcn.004e1350
test eax, eax
jne 0x4dc7d4
push 0x1c
call fcn.004dc900
add esp, 4
mov dword [ebp - 4], 0
call fcn.004e1170
call fcn.004df750
call dword [0x4f6964]
mov dword [0x4f5950], eax
call fcn.004e0fe0
mov dword [0x4ec200], eax
test eax, eax
je 0x4dc807
cmp dword [0x4f5950], 0
jne 0x4dc811
push 0xffffffffffffffff
call fcn.004dd220
add esp, 4
call fcn.004e0d60
call fcn.004e0c70
call fcn.004dd1f0
mov esi, dword [0x4f5950]
mov al, byte [esi]
cmp al, 0x22
je 0x4dc838
cmp al, 0x20
jbe 0x4dc865
inc esi
cmp byte [esi], 0x20
ja 0x4dc830
jmp 0x4dc865
inc esi
cmp byte [esi], 0x22
je 0x4dc864
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x4dc85f
xor eax, eax
mov al, bl
push eax
call fcn.004e0c10
add esp, 4
test eax, eax
je 0x4dc859
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x4dc841
cmp byte [esi], 0x22
jne 0x4dc865
inc esi
cmp byte [esi], 0
je 0x4dc875
cmp byte [esi], 0x20
ja 0x4dc875
inc esi
cmp byte [esi], 0
jne 0x4dc86a
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [0x4f6974]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x4dc899
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [0x4f69c4]
push eax
call fcn.00478120
push eax
call fcn.004dd220
jmp 0x4dc8da
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4e5e86
call fcn.004e5e91
jmp 0x4dc760

Function at 0x4dc930
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [0x4f6a10]
test eax, eax
je 0x4dc9b9
lea eax, [esp + 4]
push eax
push 0x105
call dword [0x4f697c]
test eax, eax
je 0x4dc9b9
cmp byte [esp + 4], 0x5c
je 0x4dc967
cmp byte [esp + 4], 0x2f
jne 0x4dc97a
mov al, byte [esp + 5]
cmp byte [esp + 4], al
jne 0x4dc97a
xor eax, eax
add esp, 0x10c
ret
mov byte [esp], 0x3d
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.004e16b0
lea ecx, [esp + 8]
mov byte [esp + 5], al
mov byte [esp + 6], 0x3a
mov byte [esp + 7], 0
lea edx, [esp + 4]
add esp, 4
push ecx
push edx
call dword [0x4f696c]
test eax, eax
je 0x4dc9b9
xor eax, eax
add esp, 0x10c
ret
call dword [0x4f6a78]
push eax
call fcn.004ddce0
add esp, 4
mov eax, 0xffffffff
add esp, 0x10c
ret
Function at 0x4dd260
Capabilities:
Terminate process

Disassembly:
cmp dword [0x4ec49c], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x4dd27e
push esi
call dword [0x4f6928]
push eax
call dword [0x4f6924]
mov dword [0x4ec498], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x4ec494], bl
jne 0x4dd2d8
cmp dword [0x4f594c], 0
je 0x4dd2c6
mov edi, dword [0x4f5948]
sub edi, 4
cmp edi, dword [0x4f594c]
jb 0x4dd2c6
mov eax, dword [edi]
test eax, eax
je 0x4dd2bb
call eax
sub edi, 4
cmp edi, dword [0x4f594c]
jae 0x4dd2b3
push 0x4e9064
push 0x4e905c
call fcn.004dd310
add esp, 8
push 0x4e906c
push 0x4e9068
call fcn.004dd310
add esp, 8
test ebx, ebx
jne 0x4dd2ff
mov dword [0x4ec49c], 1
push esi
call dword [0x4f6918]
pop edi
pop esi
pop ebx
ret

Function at 0x4e0fe0
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 [0x4f6ac0]
cmp dword [0x4ece24], ebx
jne 0x4e102f
call esi
cmp eax, ebx
mov edi, eax
je 0x4e100d
mov dword [0x4ece24], 1
jmp 0x4e102f
call dword [0x4f690c]
mov ebx, eax
test ebx, ebx
je 0x4e1025
mov dword [0x4ece24], 2
jmp 0x4e102f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4ece24], 1
jne 0x4e10de
test edi, edi
jne 0x4e1052
call esi
mov edi, eax
test edi, edi
jne 0x4e1052
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4e106c
add esi, 2
cmp word [esi], 0
jne 0x4e105a
add esi, 2
cmp word [esi], 0
jne 0x4e105a
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 [0x4f694c]
mov ebp, eax
test ebp, ebp
je 0x4e10cd
push ebp
call fcn.004dd140
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4e10cd
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [0x4f694c]
test eax, eax
jne 0x4e10bc
push ebx
call fcn.004dca80
add esp, 4
xor ebx, ebx
push edi
call dword [0x4f6910]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [0x4f6910]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4ece24], 2
jne 0x4e1162
test ebx, ebx
jne 0x4e1101
call dword [0x4f690c]
mov ebx, eax
test ebx, ebx
jne 0x4e1101
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x4e1116
inc ebp
cmp byte [ebp], 0
jne 0x4e1108
inc ebp
cmp byte [ebp], 0
jne 0x4e1108
sub ebp, ebx
inc ebp
push ebp
call fcn.004dd140
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x4e113b
push ebx
call dword [0x4f6908]
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 [0x4f6908]
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 0x4e14b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x4ece38
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4e14d7
add eax, 8
inc ecx
cmp eax, 0x4ecec8
jb 0x4e14c8
cmp dword [ecx*8 + 0x4ece38], edx
lea ebx, [ecx*8]
jne 0x4e169b
cmp dword [0x4ec20c], 1
je 0x4e1657
cmp dword [0x4ec20c], 0
jne 0x4e150e
cmp dword [0x4ec210], 1
je 0x4e1657
cmp edx, 0xfc
je 0x4e169b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [0x4f69ec]
push 0
call ebp
test eax, eax
jne 0x4e154b
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 0x4e158f
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 0x4eb794
push ebp
call fcn.004daf60
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, 0x4e8474
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 + 0x4ece3c]
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.004e3ca0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x4f5840], 0
je 0x4e166d
mov eax, dword [0x4f5840]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4e1677
push 0xfffffffffffffff4
call dword [0x4f6a60]
mov esi, eax
mov edx, dword [ebx + 0x4ece3c]
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 [0x4f6a2c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x4e32d0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x4f5940], edx
push ebx
push esi
push edi
push ebp
jbe 0x4e34d7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x4f5840
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x4e34d7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x4e3339
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x4e334a
push 2
push 0
push edx
call fcn.004e3500
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x4e33e6
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4e341f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x4e33ad
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x4e339b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x4e3382
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [0x4f6a2c]
test eax, eax
je 0x4e3415
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x4e336d
jmp 0x4e341f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [0x4f6a2c]
test eax, eax
je 0x4e3415
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x4e341f
call dword [0x4f6a78]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x4e34c6
cmp dword [esp + 0x10], 0
je 0x4e3478
cmp dword [esp + 0x10], 5
jne 0x4e345b
mov dword [0x4ec454], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x4ec458], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.004ddce0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x4e34a2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x4e34a2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4ec454], 0x1c
mov dword [0x4ec458], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x4ec454], 9
mov dword [0x4ec458], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4e4a90
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x4e4cce
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.004dc160
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x4e4cce
cmp ebp, dword [esp + 0x18]
je 0x4e4cce
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x4ec47c]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x4ec480], ecx
jne 0x4e4aed
push ecx
call fcn.004e4d40
add esp, 4
mov dword [0x4ec47c], eax
cmp dword [0x4ec47c], 0
jne 0x4e4b9d
cmp dword [esp + 0x1c], 0
je 0x4e4b24
cmp dword [0x4ec484], 0
je 0x4e4b24
call fcn.004e46e0
test eax, eax
je 0x4e4b9d
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x4e4b35
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4ec47c], 0
jne 0x4e4b69
push 4
call fcn.004dd140
add esp, 4
mov dword [0x4ec47c], eax
test eax, eax
jne 0x4e4b5e
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4ec47c]
mov dword [eax], 0
cmp dword [0x4ec484], 0
jne 0x4e4b9d
push 4
call fcn.004dd140
add esp, 4
mov dword [0x4ec484], eax
test eax, eax
jne 0x4e4b92
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x4ec484]
mov dword [eax], 0
mov esi, dword [0x4ec47c]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.004e4ce0
add esp, 8
mov edi, eax
test edi, edi
jl 0x4e4c05
cmp dword [esi], 0
je 0x4e4c05
cmp dword [esp + 0x10], 0
je 0x4e4bfc
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.004dca80
add esp, 4
cmp dword [ebx], 0
je 0x4e4be9
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x4e4bda
shl edi, 2
push edi
push esi
call fcn.004dd330
add esp, 8
test eax, eax
je 0x4e4c4d
jmp 0x4e4c48
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x4e4c4d
cmp dword [esp + 0x10], 0
jne 0x4e4cc4
test edi, edi
jge 0x4e4c16
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.004dd330
add esp, 8
test eax, eax
jne 0x4e4c38
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x4ec47c], eax
cmp dword [esp + 0x1c], 0
je 0x4e4cba
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004dd140
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4e4cba
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [0x4f696c]
push ebx
call fcn.004dca80
add esp, 4
xor eax, eax
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
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4e5260
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x94
mov eax, dword [0x4edcac]
test eax, eax
jle 0x4e52c3
dec eax
mov dword [0x4edcac], eax
jne 0x4e52c3
call fcn.004e582c
mov dword [esp], 0x94
lea eax, [esp]
push eax
call dword [0x4f6988]
cmp dword [esp + 0x10], 2
je 0x4e52a3
push str.Library_not_freed_..._call_microsoft_n
call dword [0x4f6ac8]
jmp 0x4e52af
mov eax, dword [0x4edca8]
push eax
call dword [0x4f6ab0]
mov dword [0x4edca8], 0
mov dword [0x4edca4], 0x4e550c
add esp, 0x94
ret
Function at 0x402a44
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403ff8
test esi, esi
jne 0x402a7a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004040e8
jmp 0x402a98
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004028f8
mov edi, eax
test esi, esi
je 0x402a98
cmp dword [ebx], 0
je 0x402a98
dec esi
jmp 0x402a81
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403120
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4031b8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403198
xor eax, eax
push ebp
push 0x403191
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 0x4031d4
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 0x403198
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x460020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462048], 0
je 0x403edd
cmp word [0x46221c], 0xd7b2
jne 0x403ea5
cmp dword [0x462224], 0
jbe 0x403ea5
mov eax, 0x462218
call dword [0x462234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46006c
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 0x403f04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460030], 0
jne 0x403ef9
push 0
push 0x460064
push 0x46006c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405b80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405be6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404268
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ce4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405bd0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bed
lea eax, [ebp - 0x10]
call fcn.00403ff8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004044b8
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4083b5
test al, 0x10
jne 0x4083b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4083c0
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004044b8
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x4083d4
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004044b8
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4083f6
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40ae9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40aed5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004040e8
jmp 0x40aede
mov eax, ebx
mov edx, esi
call fcn.0040404c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aee8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40af09
mov al, byte [esp]
jmp 0x40af0b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret